title: Javascript does not work in asp.net content page
body: <p>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.<br>
      This is my content page:<br>
      </p>
  
  
  
  <pre><code>&lt;link rel="stylesheet" href="Datepicker.css"&gt;
  &lt;script src="https://code.jquery.com/jquery.js"&gt;&lt;/script&gt;
  &lt;script src="Datepicker.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function() {
      $('#dp').datepicker();
  });
  &lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function() {
      $('#dp1').datepicker();
  });
  &lt;/script&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
  &lt;asp:Label ID="Label1" runat="server" Text="From"&gt;&lt;/asp:Label&gt;&amp;nbsp;
      &lt;input id="dp" type="text" runat="server"/&gt;&amp;nbsp;
      &lt;asp:Label ID="Label2" runat="server" Text="To"&gt;&lt;/asp:Label&gt;&amp;nbsp;
      &lt;input id="dp1" type="text" runat="server" /&gt;&amp;nbsp;
      &lt;asp:Button ID="Button1" runat="server" Text="Search" onclick="Button1_Click" /&gt;
  &lt;asp:GridView ID="gvdetails" runat="server"&gt;
  &lt;/asp:GridView&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>Note: This works without the master page,but when I add it in a content page,it does not work.Please help</p>