2
Answers

jquery not working while using <form> tag

sorav singh

sorav singh

9y
745
1

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></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> <body> <form id="form1" runat="server"> <div> <p runat="server" id="p1">this is asp.net</p> <asp:Button ID="bt1" Text="click" runat="server"/> </div> </form> </body> </html>
Answers (2)