which of these are more efficient?

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

Your Answer

$("#elementid") is efficent but it is jquery required to use jquery cdn and
document.getElementById () is simple javascript which does not required cdn.

Jquery

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