I have two datepicker
function check here
var divContent = '<input type="text" placeholder="Enter date" class="dupInput hasDatepicker" id="gl_img_datepicker" readonly="">';
jQuery("#gl_img_datepicker").datepicker();
jQuery("#gl_img_datepicker2").datepicker();
jQuery('body').on('click', '#gl_img_datepicker_init', function(e) {
jQuery("#gl_img_datepicker").datepicker('show');
});
but it does not seems to show the calender. I checked this jsfiddle and also read api but I am not able to find the problem.
I am seeing this error in console
"Uncaught TypeError: Cannot read property 'settings' of undefined "
please help, Thanks