| jQuery and jQuery UI > jQuery Selectors > jQuery Element Selectors |
In jQuery, you can use CSS selectors to choose specific HTML elements. For example:
$(this) : Selects the current HTML element.$(“div”) : Selects all <div> elements.$(“.super”) : Selects all elements of the class “super”.$(“div.super”) : Selects all <div> elements of the class “super”.$(“#wow”): Selects the first element with the id “wow”.$(“div#wow”) : Selects the first <div>element with the id “wow”.