Answer:

This is one of the most popular JQuery interview questions, as it tests understanding of multiple areas such as JQuery JS objects, JQuery syntax, DOM objects and the difference between JQuery objects and DOM objects.

Traditional approach of finding DOM elements:

var myInput = document.getElementByID('myInputID');

Same can be done with JQuery

var myJqueryImput = $('#myInputID'); //using selector
var myInput = myJqueryImput[0]; // getting reference to DOM object








Answers and Comments