title: Javascript not working in Ajax Page
body: <p>I Want to Show the datepicker in 2 input form when i hit on OK button another input from will be load,but here my datapicker is not working .My DatePicker is Not Working when it load from ajax page.
  This is my index.html</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;title&gt;Insert title here&lt;/title&gt;
    &lt;script src="https://code.jquery.com/jquery-1.12.4.js"&gt;&lt;/script&gt;
    &lt;script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"&gt;&lt;/script&gt;
    &lt;link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"&gt;
      &lt;script&gt;
    $( function() {
      $( "#datepicker" ).datepicker();
    } );
    &lt;/script&gt;
        &lt;script&gt;
    $( function() {
      $( "#datepicker1" ).datepicker();
    } );
    &lt;/script&gt;
  &lt;script&gt;
  var xyz;
  function ShowAjax()
  {
      xyz=new XMLHttpRequest();
      xyz.onreadystatechange=AjaxShow
      var url="AjaxPage.html";
      xyz.open("GET",url,true);
      xyz.send();
      function AjaxShow()
      {
          if(xyz.readyState==4 || xyz.readyState=="complete")
              {
              document.getElementById('Mylocation').innerHTML=xyz.responseText
              }
      }
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form&gt;
  &lt;table&gt; 
  &lt;tr&gt; &lt;td&gt; &lt;input type="text"  name="uname" id="datepicker"&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt; &lt;td id="Mylocation"&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt; &lt;td&gt;&lt;input type="button"    value="OK"   onclick="ShowAjax();"/&gt; &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is My AjaxPage.html"</p>
  
  <pre><code>&lt;td&gt;&lt;input type="text" name="test"  id="datepicker1"&gt;&lt;/td&gt;
  </code></pre>