$() function

  • jQuery uses a function called jQuery() to find elements on the page

  • $() is shorthand for jQuery(); $() is what is used most often


// both of these creates a jQuery object around
// the <p> element(s)
// This allows you to use jQuery methods on the element

jQuery('p') === $('p');

We’ll be using the $(selector) syntax exclusively in this class