jQuery is a JavaScript library for manipulating the DOM.

Some beginning tips:

  • $ is interchangeable with jQuery much of the time.

Selectors

To select elements, we can use $('selection-text');, where selection text can vary:

  • Element selector: changes nothing, will select all HTML elements
  • Class selector: prefix with a period .
  • ID selector: prefix with a hashtag #

Resources