i have a web form and user control inside it.
i have wriitten jquery script src and script code inside the user control
when i tried to access jquery functionality then jquery is not accessible by button
user control code are as follows :
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="myusercontrol.ascx.cs" Inherits="linqTest.myusercontrol" %>
<%--<script src='<%= ResolveClientUrl("myscript.js") %>' type="text/javascript"></script>--%>
<script src="myscript.js"></script>
<script>
$(document).ready(function () {
$("#btn_clr").click(function () {
alert("Button was clicked.");
});
});
</script>
<div>
<asp:Button ID="btn_clr" runat="server" Text="Clear" />
</div>
button when i pressed button message not show?