Datepicker reset by function


Topic: Datepicker reset by function

grtps asked 4 years ago

Hello,

I'm using the datepicker with the following jquery

$('.datepicker').pickadate({
    selectMonths: false,
    selectYears: false,
    min:true,
    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 4 years ago

Hi

Try to do this in this way: https://mdbootstrap.com/snippets/jquery/tomekmakowski/2411003#js-tab-view

Best, regards


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: 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
Tags