Méthode |
Description |
|
addClass ( string $classname ) : pquery\IQuery |
Adds the specified class(es) to each of the set of matched elements. |
|
after ( string $content ) : pquery\IQuery |
Insert content, specified by the parameter, after each element in the set of matched elements. |
|
append ( string $content ) : pquery\IQuery |
Insert content, specified by the parameter, to the end of each element in the set of matched elements. |
|
attr ( string $name, null | string $value = null ) : string | pquery\IQuery |
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. |
|
before ( string $content ) : pquery\IQuery |
Insert content, specified by the parameter, before each element in the set of matched elements. |
|
clear ( ) : IQuery; |
Remove all child nodes of the set of matched elements from the DOM. |
|
hasClass ( string $classname ) |
Determine whether any of the matched elements are assigned the given class. |
|
html ( string | null $value = null ) |
Get the HTML contents of the first element in the set of matched elements
or set the HTML contents of every matched element. |
|
prepend ( string $content ) |
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. |
|
prop ( string $name, null | string $value = null ) |
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. |
|
remove ( null | string $selector = null ) |
Remove the set of matched elements from the DOM. |
|
removeAttr ( string $name ) |
Remove an attribute from each element in the set of matched elements. |
|
removeClass ( string $classname ) |
Remove a single class, multiple classes, or all classes from each element in the set of matched elements. |
|
replaceWith ( string $content ) |
Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. |
|
tagName ( $value = null ) |
Returns the name of the element. |
|
text ( null | string $value = null ) |
Get the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements. |
|
toggleClass ( string $classname, $switch = null ) |
Add or remove one or more classes from each element in the set of matched elements,
depending on either the class’s presence or the value of the switch argument. |
|
unwrap ( ) |
Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. |
|
val ( string | null $value = null ) |
Get the current value of the first element in the set of matched elements or set the value of every matched element. |
|
wrap ( $wrapping_element ) |
Wrap an HTML structure around each element in the set of matched elements. |
|
wrapInner ( $wrapping_element ) |
Wrap an HTML structure around the content of each element in the set of matched elements. |
|