c# - Trying to use jquery.are-you-sure.js? -
this question has reply here:
jquery - $ not defined 32 answersi new in jquery have test.aspx page :
<%@ page language="c#" autoeventwireup="true" codefile="test.aspx.cs" inherits="test" %> <script type="text/javascript" src="jquery-1.8.2.min"></script> <script type="text/javascript" src="jquery.are-you-sure.js"></script> <script> $(function () { $('form').areyousure(); $('form').areyousure({ 'message': 'your profile details not saved!' }); }); </script> <html xmlns="http://www.w3.org/1999/xhtml"> <!doctype html> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:textbox id="textbox1" runat="server"></asp:textbox> <asp:button id="button1" runat="server" text="button" onclick="button1_click"/> </div> </form> </body> </html> i error:referenceerror: $ not defined line5.. tired find solutions
the error suggesting don't have jquery-1.8.2.min file @ same label page is.
like suppose have file test.aspx on root folder script file should on root.
and if script file within folder need specify folder name
<script type="text/javascript" src="yourfolder/jquery-1.8.2.min"></script> c# javascript jquery html asp.net
No comments:
Post a Comment