showing/hiding divs with jquery

Here are my earlier notes on this subject without jquery


function showformdiv()
{
   $("#formdiv").show();
   $("#showformDivId").hide();
   $("#hideformDivId").show();
}
function hideformdiv()
{
   $("#formdiv").hide();
   $("#showformDivId").show();
   $("#hideformDivId").hide();
}

of course you have to name your divs accordingly

jquery show() hide()

Search for: jquery show() hide()

because if I hide my div with hidden visibility as a style argument, it gets messed up. So I am wondering if show and hide has other arguments to correctly rewrite the style of the div.

show does its magic by controlling the display property of style


<div id="hideformDivId" style="display:none">

here is jquery help on show