In the documentation, some features have worked on selectors since version 1.0. But added to version 1.6 is the same feature that now works on an element. How is this something that was added? Is there a difference between a tag selector and an element?
In the documentation , some features have worked on selectors since version 1.0. But
Share
A selector is a string. An element is the DOM object that you use selectors to select. The documentation you linked to has an example:
Notice how the argument to
$alt.isis the element that was clicked,this, not a jQuery selector string.