Get the value of an attribute for the first element in the set of matched elements.
Set one or more attributes for the set of matched elements.
map: A hash ref of attribute-value pairs to set.
Check jQuery API
http://api.jquery.com/attr/
Remove an attribute from each element in the set of matched elements.
http://api.jquery.com/removeAttr/
Adds the specified class(es) to each of the set of matched elements.
One or more class names to be added to the class attribute of each matched element.
A function returning one or more space-separated class names to be added. Receives the index position of the element in the set and the old class value as arguments.
http://api.jquery.com/addClass/
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
One or more space-separated classes to be removed from the class attribute of each matched element
A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments.
http://api.jquery.com/removeClass/
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.
One or more class names (separated by spaces) to be toggled for each element in the matched set.
className: One or more class names (separated by spaces) to be toggled for each element in the matched set.
switch: A boolean value to determine whether the class should be added or removed.
http://api.jquery.com/toggleClass/
Determine whether any of the matched elements are assigned the given class.
String: The class name to search for.
http://api.jquery.com/hasClass/
Get the current value of the first element in the set of matched elements.
Set the value of each element in the set of matched elements.
A function returning the value to set.
http://api.jquery.com/val/
return element id
Get the descendants of each element in the current set of matched elements, filtered by a selector.
http://api.jquery.com/find/
insert css style(s) to the selected Element
set list of hashref styles to the selected element(s)
set one style to the selected element(s)
Store arbitrary data associated with the specified element. Returns the value that was set.
or
element : The DOM element to associate with the data.
key : A string naming the piece of data to set.
value : The new data value.
http://api.jquery.com/jQuery.data/
Reduce the set of matched elements to those that match the selector or pass the function's test.
http://api.jquery.com/filter/
Translate all items in an array or object to new array of items.
http://api.jquery.com/jQuery.map/
Get the contents of any element. If the selector expression matches more than one element, only the first one's HTML content is returned.
htmlString: A string of HTML to set as the content of each matched element.
A CODE ref returning the HTML content to set. Receives element, the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content.
same as jQuery .html( function(index, oldhtml) )
http://api.jquery.com/html/
The result of the text() method is a string containing the combined text of all matched elements.
textString: A string of text to set as the content of each matched element.
A CODE ref returning the text content to set. Receives the element, index position of the element in the set and the old text value as arguments.
same as jQuery .text( function(index, oldtext) )
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
content: An element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.
A CODE ref that returns an HTML string to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments.
same as jQuery .append( function(index, html) )
http://api.jquery.com/append/
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
content: An element, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.
A CODE ref that returns an HTML string to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments.
same as jQuery .prepend( function(index, html) ) function
http://api.jquery.com/prepend/
Insert every element in the set of matched elements to the end of the target.
Target: A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.
http://api.jquery.com/appendTo/
Insert every element in the set of matched elements to the beginning of the target.
Target: A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.
http://api.jquery.com/prependTo/
Add elements to the set of matched elements.
selector: A string containing a selector expression to match additional elements against.
context: Add some elements rooted against the specified context.
elements: one or more elements to add to the set of matched elements.
html: An HTML fragment to add to the set of matched elements.
http://api.jquery.com/add/
Add the previous set of elements on the stack to the current set.
http://api.jquery.com/andSelf/
Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
http://api.jquery.com/next/
Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
http://api.jquery.com/nextAll/
Get all following siblings of each element up to but not including the element matched by the selector.
http://api.jquery.com/nextUntil/
Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
http://api.jquery.com/parent/
Get the children of each element in the set of matched elements, optionally filtered by a selector.
http://api.jquery.com/children/
Get the first ancestor element that matches the selector, beginning at the current element and progressing up through the DOM tree.
http://api.jquery.com/closest/
Get the children of each element in the set of matched elements, including text and comment nodes.
http://api.jquery.com/contents/
End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
http://api.jquery.com/end/
Reduce the set of matched elements to the one at the specified index.
http://api.jquery.com/eq/
Reduce the set of matched elements to the first in the set.
http://api.jquery.com/first/
Reduce the set of matched elements to the final one in the set.
http://api.jquery.com/last/
Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
http://api.jquery.com/has/
Check the current matched set of elements against a selector and return true if at least one of these elements matches the selector.
http://api.jquery.com/is/
Remove elements from the set of matched elements.
http://api.jquery.com/not/
returns number of matched elements
To install jQuery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm jQuery
CPAN shell
perl -MCPAN -e shell install jQuery
For more information on module installation, please visit the detailed CPAN module installation guide.