Saturday, November 12, 2011

How to show/hide elements using jQuery

In this tutorial we will show you how to show and hide an element with jQuery . First we include the jQuery library, and in script part we add show hide function. We can set duration as parameter : slow, fast, or exact milliseconds.
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
<div class="hiddenDiv" style="display:none;">Hidden div </div>
<div class="myDiv2">jQuery show() and hide() example</div>

1 comment:

Vcom Infotech Company said...

Thanks for these useful coding which you have shared through these post. Web design coimbatore | Best logo design company