![]() Do not focus on optimization of selector speed Performs an additional check before identifying the element as aĪs always, remember that as a developer, your time is typically the Selector is attached to the id selector, such as h2#pageTitle, jQuery In your example, it would select the element with the ID of "searchTerm".įor id selectors, jQuery uses the JavaScript functionĭocument.getElementById(), which is extremely efficient. It's one way jQuery can select an element. That's jQuery and the pound sign (#) refers to an element's ID.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |