To restrict only a specific date in a type="date" field

Asked

Viewed 18 times

-1

Hello. Good morning.

I am using a date field to allow users to select a day to reserve equipment, however, I would like that when the user opens the calendar, the dates already scheduled could not be selected. I have tried the options min, max and spin and none of them proved sufficient for this need.

There is someone who knows how to do this using javascript or another method?

Thank you.

  • 2

    the input date was not made to have so much flexibility.. vc can use min/max but if you want something more detailed you will have to program, or use some plugin like Datepicker that solves this easily

  • Thanks friend. I figured I’d have to go that way anyway. Thanks anyway.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.