0

I have an input field of type time as following

<input type="time" name="visible-start-time" id="visible-start-time" class="form-control half-input" value="@(Model==null?"":Model.StartTime.TimeOfDay.ToString())"/>

enter image description here

I do not want the native html validation message to be shown.

J.vee
  • 623
  • 1
  • 7
  • 26
Mohammed Ehab
  • 207
  • 1
  • 5
  • 14

1 Answers1

0

You need to add a novalidate attribute to your <form> tag to disable the browsers native validation (For all controls).

It's explained here

Sean T
  • 2,414
  • 2
  • 17
  • 23