I have a DatePicker for choosing a birthday.
This will be used for some filtering, and after filtering I will need the value to be reset, i.e. DatePicker must be empty.
Any help ???
If you want to clear the TextField from DatePicker , you can use:
TextField
DatePicker
datepicker.getEditor().clear();
If you want to clear the value and text field, use:
datePicker.setValue(null);
just add this code
}).keyup(function(e) { if(e.keyCode == 8 || e.keyCode == 46) { $.datepicker._clearDate(this); } });
You can use backspace to clear the field, even if it has a read-only mode. A source
Source: https://habr.com/ru/post/1203088/More articles:Getting value with pywinauto from a text field - python-2.7onPerformSync () called multiple times - androidExtension for iOS 8 applications Custom Keyboard - change the height for orientation - iosHow to redo the yes / no decision tree? - pythonXcode 6 UICollectionview viewwithtag not working - iosEliminates dispatcher rejection viewViewControllerAnimated () - iosHow to ignore unexpected fields in a JAX-RS 2.0 client? - javaas.data.frame aligns the nested list into one line instead of creating a line for each record - rHow to profile an OpenTK C # application using CodeXL? - c #Installing python server for emacs-jedi - pythonAll Articles