I am having a button. On clicking the button, i have to bind a set of records dynamically in some fields which is placed inside the div.
I need to show the div with animation when the button is clicked.
Thanks.
<html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> $("#demo").live("click", function () { if ($("#dv").is(":hidden")) { $("#dv").fadeIn("slow"); } else { $("#dv").fadeOut("slow"); } }); </script> </head> <body> <form id="form1" runat="server"> <input type="button" id="demo" value="Animate" /> <div id="dv" style="display: none"> This is an Animated DIV<br /> This is an Animated DIV<br /> This is an Animated DIV<br /> This is an Animated DIV<br /> </div> </form> </body> </html>
Demo
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.