Topic: How can i get the value of the the date i selected in the date picker?

eshiett1995 pro asked 6 years ago


I have read the documentation for date picker, but I do not see how to get the date selected, can anyone help me. Thank you

Mikołaj Smoleński staff answered 6 years ago


Hi, You can get it using the following code:
$('.datepicker').on('change', function() {
  let dateValue = $(this).val();
  console.log(dateValue);
})


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: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags