A tag name: $('p') gets all paragraphs in the document.
An ID: $('#some-id') gets the single element in the document that has the
corresponding some-id ID.
A class: $('.some-class') gets all elements in the document that have a
class of some-class.
In jQuery, the dollar sign $ is simply shorthand for jQuery
No comments:
Post a Comment