Regards, Susan
Mark as Answer if its helpful to you Kumaraspcode2009@gmail.com
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript" src="JQuery.js"></script> //reference to the jquery plugin <script type="text/javascript" src="JScript2.js"></script> <link rel="Stylesheet" type="text/css" href="Style.css" /> </head> <body> <form id="form1" runat="server"> <div> <div class="divFade" id="divF" > <h3><center>Example</center></h3> </div> <asp:Button text="Click" ID="btnFade" runat="server" /> </div> </form> </body> </html>
$(document).ready(function() { $("#btnFade").click(function() { if ($("#divF").css('display') == 'none') $("#divF").fadeIn(); else $("#divF").fadeOut(); return false; }); }); or $(document).ready(function() { $("#btnFade").click(function() { $("#divF").fadeToggle(1750); return false; }); });
.divFade { margin:100px 0px 0px 0px; width:200px; height:200px; background-color:Red; }
Nitha Deepak
Login to post response