In JavaScript, you often need to write several lines of code to select an element in an HTML document. But with jQuery robust selector mechanism you can traverse the DOM tree and select elements in an easy and efficient manner to perform any manipulation.