Andrés Orozco
Andrés Orozco

Reputation: 2661

Avoid browsers default behavior required inputs

What I want to do is avoid browsers to show a tooltip when I try to submit a form that contains empty inputs. I'm validating with a plugin, and when I don't want to have two tooltips saying basically the same thing.

Upvotes: 0

Views: 98

Answers (2)

Sharky
Sharky

Reputation: 6274

since there is a custom validation method its better to simply remove the required attribute from the inputs rather having required inputs and a novalidate form.

a simple novalidate form does not guarantee compatibility with whatever the custom validation is and is just adding unnecessary complexity.

Upvotes: 0

Kristiyan Kostadinov
Kristiyan Kostadinov

Reputation: 3712

On the form you can add the novalidate attribute:

<form novalidate>
  <input required/>
</form>

Upvotes: 1

Related Questions