title: jquery clone date picker not working
body: <p>Working on clone using datepicker. I have searched in stackoverflow for my issue i am not getting the correct stuff.  When the user clicks the date from the original date it was working as expected But once the user click the addmore button in the cloned div the datepicker was not working. I tried giving <code>.destroy</code> the result was not coming as expected.It might be the duplicate question but as I said the solution not working in my case.</p>
  
  <p>Here is the jquery code.</p>
  
  <pre><code>var currentDate = new Date();
  $(".cloned-row1").find(".deg_date").removeClass('hasDatepicker').datepicker({
      dateFormat: "mm-dd-yy",
      changeMonth: true,
      yearRange: "-100:+0",
      changeYear: true,
      maxDate: new Date(),
      showButtonPanel: false,
      beforeShow: function () {
          setTimeout(function (){
          $('.ui-datepicker').css('z-index', 99999999999999);
  
          }, 0);
      }
  });
  $(".deg_date").datepicker("setDate", currentDate);
  var count=0;
      $(document).on("click", ".edu_add_button", function () { 
          alert("checj");
          var $clone = $('.cloned-row1:eq(0)').clone(true,true);
          //alert("Clone number" + clone);
          $clone.find('[id]').each(function(){this.id+='someotherpart'});
          $clone.find('.btn_more').after("&lt;input type='button' class='btn_less1' id='buttonless'/&gt;")
          $clone.attr('id', "added"+(++count));
          $clone.find(".school_Name").attr('disabled', true).val('');
          $clone.find(".degree_Description").attr('disabled', true).val('');
          $clone.find("input.deg_date").datepicker();
          $(this).parents('.educat_info').after($clone);
      });
      $(document).on('click', ".btn_less1", function (){
          var len = $('.cloned-row1').length;
          if(len&gt;1){
              $(this).closest(".btn_less1").parent().parent().parent().remove();
          }
      });
  </code></pre>
  
  <p>Here is the fiddle<a href="http://jsfiddle.net/karthic2914/0389gq3k/" rel="nofollow">link</a></p>
  
  <p>Thanks in advance</p>