No matter which type of selector we want to use in jQuery, we always start with the same function:
$(). This function typically accepts a CSS selector as its sole parameter, and serves as a factory, returning a new jQuery object pointing to the corresponding elements on the page. Just about anything that can be used in a stylesheet can also be passed as a string to this function, allowing us to apply jQuery methods to the matched set of elements.
In jQuery, the dollar sign
$ is simply an "alias" for
jQuery. As a