Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
pQuery
IQuery
attr
pQuery\IQuery::attr PHP Метод
Документация по интерфейсу IQuery
Показать файл
Открыть проект
attr()
публичный
Метод
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.
Результат
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