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
prop
pQuery\IQuery::prop PHP Méthode
IQuery Interface Documentation
Afficher le fichier
Open project: tburry/pquery
prop()
public
méthode
Get the value of a property for the first element in the set of matched elements or set one or more properties for every matched element.
public
prop
(
string
$name
,
null
|
string
$value
= null )
$name
string
The name of the property. The currently supported properties are `tagname`, `selected`, and `checked`.
$value
null
|
string
The value to set or null to get the current property value.
function prop($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