Using jQuery its a piece of cake.

Code: JavaScript
$('#idOfMyDiv').hide(); // hides the div with id 'idOfMyDiv'
$('.myClassName').hide(); //hides all elements having the classname 'myClassName'
 

Similarly, the show function will unhide the element(s). Enjoy