Topic: Datepicker reset by function

grtps free asked 3 years ago


I'm using the datepicker with the following jquery

    selectMonths: false,
    selectYears: false,
    format: 'dddd, dd. mmmm yyyy',
    formatSubmit: 'yyyy-mm-dd',

It works fine but I do have a question.

On the surface of the datepicker there's a clear button that calls some function to reset the datepicker.

Is there a way to trigger this clear function without clicking the clear button ? I'm looking for a way to reset/clear the datepicker without having to click the clear button.

Tomek Makowski staff commented 3 years ago


Try to do this in this way:

Best, regards

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: PC
  • Browser: Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No