0

All I can find is min, max and step, but what I'm trying to do is have the date or date-time local picker only be able to select for example Saturday and Sunday of any week.

Is there a way to do this?...

I know I can validate it, but I would like to restrict the selection in the first place...

Odd question I know.

Rogelio
  • 910
  • 5
  • 14

1 Answers1

0

No, there is no such build-in function in the specs as there is min/max/step -- these are the only ones.

The variations are just way too much. You must use validation. An easier way to do this would be using a plugin as daterangepicker. More on input type date - here.

Marin HTML
  • 126
  • 9