Quick Reference
This is a quick reference list of jQuery Miscellaneous Methods that are used for various things involving the selected elements.
- jQuery – data() MethodThe data() method attaches data to, or gets data from, a selected element.
- jQuery – get() MethodThe get() method gets the DOM elements specified by the selector.
- jQuery – index() MethodThe index() method returns the index position of specified elements relative to other specified elements, and if not found, will return -1.
- jQuery – noConflict() MethodThe noConflict() method releases jQuery’s control of the $ variable and can be used to specify a new custom name for the jQuery variable.
- jQuery – param() MethodThe param() method creates a serialized representation of an array or an object.
- jQuery – removeData() MethodThe removeData() method removes data previously set with the data() method.
- jQuery – toArray() MethodThe toArray() method returns the elements matched by the jQuery selector as an array.
jQuery Notes:
- To use jQuery on your site, it must first be downloaded from the official jQuery site and linked to in your document <head>, or linked to via a CDN in your document <head>
- It is generally good practice to place your jQuery code/function inside the document load function so that the action takes place ONLY after the document has finished loading
- When using jQuery, single or double quotation marks are acceptable and work identically to one another; choose whichever you prefer, and stay consistent
We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.