Topic: How do I allow the datepicker icon to pull up the calendar and return the date selected to the input field as text?

cbutler90 free asked 4 years ago


Expected Behavior

Right now, I have the datepicker class on the input field, but I'd like to have the calendar icon pull up the calendar modal and return the selected date to the input field. Is this something I'm able to do? I don't see the option for the icon in your documentation.

Actual behavior

If I add the class "datepicker" to the div wrapping the calendar icon, I am able to have the calendar popup, but the selected date is not returned to the user via the input field.

Resources (screenshots, code snippets etc.)

https://www.screencast.com/t/7vBDLvlyWdhG


Mikołaj Smoleński staff answered 4 years ago


Hi there,

Currently there is no such option to trigger datepicker from an icon. We'll add it to our list of ideas.

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

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.11
  • Device: Desktop
  • Browser: Google Chrome, or any
  • OS: Windows 10 Pro
  • Provided sample code: No
  • Provided link: Yes