I want to execute the following jquery function
$(document).ready(function () {
$('.btnReset').click(function () {
$('#txtFirstName').val('');
});
});
The error is:
uncaught ReferenceError: $ is not defined.
on link button click, which is as follows;
<asp:LinkButton ID="btnReset" CssClass="btnReset" runat="server">RESET</asp:LinkButton>
But, I don't know why it is not working, Please assist me if anybody knows that. Thanks.
#txtFirstNamea client-side input (<input type="text" />), or an<asp:Textbox />control?$is not defined, you are either calling the script before jQuery has loaded or jQuery is not linked to the page.