Nov 22
show_hide div 2
1. The Html code is as given below
<a href=”javascript:;” onclick=”show_div();”>Show</a>
<a href=”javascript:;” onclick=”hide_div();”>hide</a>
<div class=”div1″ id=”dav1″>
<p>We are using this div to demonstrate show/hide code.</p>
<p>dreamtechworld is conducting computer training for php and mysql</p>
</div>
2.Now write Javascript Code
<script>
function show_div()
{
$(”div1″).
show("slow");
}function hide_div()
{
$(”div1″).
hide("slow");
}</script>
No Comments
Leave a comment