Toggle navigation
Hot Examples
KO
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 0 문서
파일 보기
프로젝트 열기: tburry/pquery
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