Answer the question
In order to leave comments, you need to log in
How to submit a form without validation?
hello i have a form
<form action="" id="f">
<input type="text" required>
<button type="submit">send</button>
</form>
Answer the question
In order to leave comments, you need to log in
Add the novalidate attribute to the form.
https://developer.mozilla.org/ru/docs/Web/HTML/Ele...
Use the confirm function to ask the user something like this:
The form was filled out incorrectly, are you sure you want to submit the data as is?
OK | Cancel
There are no "special cases" in programming, there are conditions. catch form submit events, check conditions, and then either submit the form or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question