Elistan
Elistan

Reputation: 363

Required attribute and validation groups

I have several textboxes on the form that are marked with required="required" attribute (html5). There are two buttons. The first button should cause validation, the second should not.

ValidationGroup doesn't work in this case.

How is it possible to solve this issue?

UPD: To use required attribute is the requirement so I cannot avoid it.

Upvotes: 0

Views: 2544

Answers (1)

Kornel
Kornel

Reputation: 100110

<input type=submit formnovalidate>

Submits the form without validation.

Upvotes: 2

Related Questions