which of these are more efficient?

document.getElementById( "elementId" ); or $( "#elementId" );

Your Answer

Hi,
$("#elementID") is a function call to the jQuery JavaScript library that does much the same thing, though the result is a jQuery object encapsulating said DOM element.
Happy Coding

Jquery

Didn't get the answer.
Contact people of Talent-Jquery directly by clicking here