why datepicker is lost after window.print : I have to print part of my page by `window.print()`.
Here is the code:

    function printDiv(divName) {
      var printContents = document.getElementById(divName).innerHTML;
      var originalContents = document.body.innerHTML;
      document.body.innerHTML = printContents;
      window.print();
      document.body.innerHTML = originalContents;
      }

I know that copy innerHTML and pasting it after print command can cause lost of event listener. But it can be overcome by a `$('body').on` attachment. But as I am novice to jquery, I do not know how can I use this jquery on method in case of datepicker attachment. So, everytime I print part of my webpage using this type of javascript print method, datepicker is lost and it is not attaching in the desired input fields.

Please visit my site to check the situation:
[http://infomamun.xyz][1]

and click on the `#dob` or other input fields to see the workable datepicker. Then please press `Print` button and cancel or done the print job. After that you can see that there is no datepicker attached on click of `#dob` and other input fields of the table.

How to resolve this issue?

[NB: please don't recommend css print system, I have to use this method. Also, please don't downvote my Question. I am very novice to jquery]


  [1]: http://infomamun.xyz