Hello, I am facing weird problem here. When I select a date from #1 which is displayed inside window #2, it fires the window close event #3. I don’t understand what is the connection here. Please help me understand. I don’t want the event to be fired.
#1:
var date = new Date();
date.setFullYear(2000, 0, 1);
$(‘#dob’).jqxDateTimeInput({ theme: theme, height: 22, value: $.jqx._jqxDateTimeInput.getDateTime(date) });
#2:
$(‘#window’).jqxWindow({showCollapseButton: true, maxHeight: 400, maxWidth: 700, minHeight: 400, minWidth: 700, height: 400, width: 700, theme: theme,title:”Add New Profile“});
#3:
$(document).on(‘close’,’#window’, function() {
alert(‘1’);
});