Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
pQuery
IQuery
attr
pQuery\IQuery::attr PHP Méthode
IQuery Interface Documentation
Afficher le fichier
Open project: tburry/pquery
attr()
public
méthode
Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
public
attr
(
string
$name
,
null
|
string
$value
= null ) :
string
| pquery\IQuery
$name
string
The name of the attribute.
$value
null
|
string
The value to set or null to get the current attribute value.
Résultat
string
| pquery\IQuery
function attr($name, $value = null);
IQuery
addClass
after
append
attr
before
clear
hasClass
html
prepend
prop
remove
removeAttr
removeClass
replaceWith
tagName
text
toggleClass
unwrap
val
wrap
wrapInner