jQuery
HTML
CSS
JavaScript
PHP
SQL
WordPress
jQuery Reference

Quick Reference

This is a quick reference list of jQuery HTML/CSS methods that are used to manipulate the selected elements.

jQuery – add() Method

The add() method adds elements to an existing group of elements in the whole document, or just inside context elements if specified.

jQuery – after() Method

The after() method inserts specified content (HTML tags, jQuery objects, DOM elements) after the selected elements.

jQuery – append() Method

The append() method inserts specified content (HTML tags, jQuery objects, DOM elements) at the end of the selected elements.

jQuery – before() Method

The before() method inserts specified content (HTML tags, jQuery objects, DOM elements) before the selected elements.

jQuery – detach() Method

The detach() method removes the selected elements, including all text and child nodes, but keeps data and events.

jQuery – empty() Method

The empty() method removes all child nodes and content from the selected elements, but does NOT remove the element itself or its attributes.

jQuery – hasClass() Method

The hasClass() method checks if any of the selected elements have a specified class name, and returns “true” if any do.

jQuery – innerHeight() Method

The innerHeight() method returns the inner height of the FIRST matched element, including padding, but NOT including border and margin.

jQuery – innerWidth() Method

The innerWidth() method returns the inner width of the FIRST matched element, including padding, but NOT including border and margin.

jQuery – offset() Method

The offset() method sets the offset coordinates for ALL matched elements the selected elements, relative to the document.

jQuery – position() Method

The position() method returns the element’s top and left position, in pixels (relative to its parent), of the first matched element.

jQuery – prepend() Method

The prepend() method inserts specified content (HTML tags, jQuery objects, DOM elements) at the beginning of the selected elements.

jQuery – text() Method

The text() method sets the text content of the selected elements, overwriting the content of ALL matched elements.

jQuery – wrap() Method

The wrap() method wraps specified HTML element(s) around EACH selected element separately. Every selected element will be wrapped on its own.

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.

jQuery
HTML
CSS
JavaScript
PHP
SQL
WordPress

Why 1SMARTchicken?

This site was built and is maintained to benefit my autistic son.
See More →

My Son's Name is Johnny

He was diagnosed as autistic quite late, at age four...
His story

Buy Me a Coffee

Thanks for your support!

Feedback

If you see an error on the page or the code itself is incorrect or incomplete, or just plain wrong, please let us know. We’re always learning. NOTE: we do not sell your information and will not send you spam emails.