Home › Forums › JavaScript › jQuery Date Selector › Re: jQuery Date Selector
July 26, 2010 at 5:20 am
#80380
Historical Forums User
Participant
You would think this would work:
Code:
hideIfClickOutside: function(event) {
if( event.target == $(‘.date_input’)) {
this.show();
}
if( event.target != $(‘.date_input’) && event.target != $(‘.date_selector’)) {
this.hide();
}
},
if( event.target == $(‘.date_input’)) {
this.show();
}
if( event.target != $(‘.date_input’) && event.target != $(‘.date_selector’)) {
this.hide();
}
},
…but it doesn’t.