Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
pQuery
IQuery
attr
pQuery\IQuery::attr PHP Method
IQuery Interface Documentation
Mostra file
Open project: tburry/pquery
attr()
public
method
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.
return
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