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.
<%@ 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>2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Md. Raskinur RashidPosted Jan 19, 2015, 2:02 AM
$('#<%=bt1.ClientID%>').click(function(){......}
Pradeep ShetPosted Jan 19, 2015, 1:59 AM