document.getElementById("elementId").style.display="none"
is used in JavaScript to hide an element. But in jQuery,
$("#elementId").hide();
is used for the same purpose. Which way is more efficient? I have seen a comparison between two jQuery function .hide() and .css("display","none").
But my problem is whether pure JavaScript is more efficient than jQuery?