which of these are more efficient?

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

Your Answer

$('#element') is derived from query selector as doxument.querySelector('#element') define in jquery library. Here u can use both id/name but only with the help of jquery library where as document.getElementById('elementId') is only with I'd of the element only and it runs in native without help any library.

Jquery

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