js hide div contents and show on button click code example
Example: javascript hide a div
Hide/show this div
('#main').hide(); //to hide
// 2nd way, by injecting css using jquery
$("#main").css("display", "none");
Hide/show this div
('#main').hide(); //to hide
// 2nd way, by injecting css using jquery
$("#main").css("display", "none");