Topic: Can't clear datepicker

balcamo priority asked 1 year ago


Expected behavior

I am trying to add buttons that clear all elements on a form. I have a reset and exit button that should trigger the event.

Actual behavior

On clear/reset the value is remaining the same. I've tried the common datepicker jquery methods.

Resources (screenshots, code snippets etc.)

enter image description here

enter image description here


Grzegorz Bujański staff commented 1 year ago

What do you mean by common datepicker jquery methods? Can you paste here the code that executes when you click the clear button?


balcamo priority commented 1 year ago

$('.datepicker').datepicker('setDate', '') $('.datepicker).attr('value', '')


balcamo priority answered 1 year ago


I no longer need this resolved as I've removed the MDB datepicker from the project.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 5.1.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No