jQuery show div

This example displays a hidden div element using the jquery show method.

Code


<script>
function gofunc() {
$( "#hiddenDiv" ).show();
}
</script>
<p><button type="button" onclick="gofunc()" >Show the div!</button></p>
<div id="hiddenDiv" style="display:none">
<p>Now you see it!</p>
</div>