which of these are more efficient?

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

Your Answer

javascript function (Document.Getelementbyid( "Elementid" ); ) is more efficient/faster. jquery function( $( "#Elementid" );) internally again convert to javascript code. but difference is very negligible.

Jquery

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