Jquery is not wrking when I am using form tag in asp.net controls.so whats the solution .I am trying multiple techniques but it does not work.
JavaScript
Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> DOCTYPE html> html xmlns="http://www.w3.org/1999/xhtml"> head runat="server"> title> script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">script> script type="text/javascript"> $(document).ready(function () { $("#bt1").click(function () { $("#p1").hide(2000); }); }); script> head> form id="form1" runat="server"> p runat="server" id="p1">this is asp.netp> asp:Button ID="bt1" Text="click" runat="server"/> div> form> body> html>
Pradeep ShetRank #595 · 4K reputationPosted Jan 18, 2015, 8:59 PM EST
Md. Raskinur RashidRank #4,252 · 355 reputationPosted Jan 18, 2015, 9:02 PM EST
$('#<%=bt1.ClientID%>').click(function(){......}