I have a DatePicker for selecting birthday.
This is going to be used for some filtering, and after the filtering, I will like the value to be
just add this code
}).keyup(function(e) { if(e.keyCode == 8 || e.keyCode == 46) { $.datepicker._clearDate(this); } });
You can use backspace to clear field even if it has in read only mode. Source