<script type="text/javascript" src="C://Scripts/jquery-1.4.1.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> $(function () { $("#<%= Button1.ClientID %>").on("click", function () { $("#<%= Panel1.ClientID %>").fadeToggle(200); }); }); </script>
<asp:Button ID="Button1" runat="server" Text="Button1" /> <asp:Panel ID="Panel1" style="display:none" runat="server">Toggle Display</asp:Panel>
$(function () { $("#button1").on("click", function () { $("#<%= Panel1.ClientID %>").fadeToggle(200); return false; // this will not trigger any server side code to execute. }); });
<asp:button id="Button1" runat="server" text="Button1" xmlns:asp="#unknown" />
<inpput type="button" id="button1" value="Button1" />
<script type="text/javascript"> $(function () { $("#button1").on("click", function () { $("#<%= Panel1.ClientID %>").fadeToggle(200); }); }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)