title: Datepicker in Ajax Modal Pop Up
body: <p>I am using Modal Popup on click to call a FORM from Ajax, my issue is that the datepicker is not working in modal pop up + Ajax FORM</p>
  
  <p>here is code</p>
  
  <p><strong>HTML :</strong></p>
  
  <pre><code>&lt;a href="#" data-toggle="modal" data-target="#myId" class="pickUpClass"&gt;Add&lt;/a&gt;
  
  &lt;div class="modal fade" id="myId" tabindex="-1" role="dialog"   aria-hidden="true"&gt;
  &lt;div class="modal-dialog"&gt;
  &lt;div class="modal-content"&gt;      
     &lt;form class="form-horizontal form-bordered" method="post" id="Form2"&gt;
        &lt;div class="modal-body"&gt;
          &lt;div class="panel-body panel-body-nopadding cancelForm" style="max-height:400px; overflow:auto;"&gt;       
  
          &lt;/div&gt;            
    &lt;/form&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p><strong>AJAX CODE for calling FORM</strong> </p>
  
  <pre><code>$('a.pickUpClass').click(function(){
      $.ajax({
          type: "POST",
          url: "AJAX.php", // 
          success: function(msg){
              $(".Form2").html(msg);
          },
          error: function(){
              //alert("failure");
          }
      });
  
  });
  </code></pre>
  
  <p><strong>AJAX.PHP</strong></p>
  
  <pre><code>&lt;input type="text" class="form-control" name="pickUpDate" id="pickUpDate" required&gt;
  </code></pre>
  
  <p>when i call AJAX.php directly, the datepicker works perfectly and calling through ajax function datepicker is not working..</p>
  
  <p>What can i do..??</p>