About Lesson
querySelector() and querySelectorAll() are two jQuery functions that help the HTML elements to be passed as a parameter by using CSS selectors (‘id’, ‘class’) that can be selected.
querySelector() Method: The querySelector() method returns the first element within the document which matches a specified CSS selector(s). If multiple elements occur, then it returns the result for only the first matching element.
Syntax:
document.querySelector(selectors);