Wednesday, February 13, 2013

Hide div tags with jQuery and javascript?


JavaScript function to hide div tag:

Code :

var varTag=document.getElementByTagName('div');

for(int i=0;i  varTag[i].style.display='none';


JQuery function to hide div tag:

Code:

$("div").hide();


Only with dollar sign($) and hide function () ,we are able to hide the div tag ..