jQuery References. At W3Schools you will find a complete reference of all jQuery selectors, methods, properties and events. jQuery Reference
The attr() method sets or returns attributes and values of the selected elements. When this method is used to return the attribute value, it returns the value of the FIRST matched element. When this method is used to set attribute values, it sets one or m
The jQuery method attr(), also comes with a callback function. The callback function has two parameters: the index of the current element in the list of elements selected and the original (old) attribute value. You then return the string you wish to use a
Post a Comment:
Showing 0 Comments: