I am trying to display the javascript date time picker in a textbox on the content page, that is derived from the master page, but the datetime picker is not getting displayed.
This is my content page:
<link rel="stylesheet" href="Datepicker.css">
<script src="https://code.jquery.com/jquery.js"></script>
<script src="Datepicker.js"></script>
<script>
$(document).ready(function() {
$('#dp').datepicker();
});
</script>
<script>
$(document).ready(function() {
$('#dp1').datepicker();
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Label ID="Label1" runat="server" Text="From"></asp:Label>
<input id="dp" type="text" runat="server"/>
<asp:Label ID="Label2" runat="server" Text="To"></asp:Label>
<input id="dp1" type="text" runat="server" />
<asp:Button ID="Button1" runat="server" Text="Search" onclick="Button1_Click" />
<asp:GridView ID="gvdetails" runat="server">
</asp:GridView>
</asp:Content>
Note: This works without the master page,but when I add it in a content page,it does not work.Please help