Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: does onchange and blur events works on mdb-datepicker?not working for me

test zoom free asked 6 years ago


does onchange and blur events works on mdb-datepicker?not working for me


Damian Gemza staff answered 6 years ago


Hello test zoom, In datePicker we're not using blur event, so you can use it in your app component. We're using also ngOnChanges hook. If you need more informations, let me know, what do you need exactly. Best Regards, Damian

test zoom free commented 6 years ago

want to calculate age based on date selection.which event works for that?

Damian Gemza staff commented 6 years ago

So in my opinion, you have to listen for changes on datepicker input. If value in input changes, you have to perform some calculations. Try this: https://www.w3schools.com/jsref/event_onchange.asp Best Regards, Damian


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 Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags