Hello, as title says datepicker does not work when content dynamically added
my page built like this:
include("header"); // with all needed JS and CSS
content where on every click is dynamically loaded
include("footer.php");
footer file holds:
<script>
$(document).ready(function() {
$('.datepicker').datetimepicker({
format: 'DD.MM.YYYY',
locale: 'lv'
});
});
</script>
right before </body>
As much as i got it from what i read is that DOM just doesnt know that new content is there!?
I also was not be able to find a solution
Any help would be appreciated!
Thanks!