English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

HTML-Tagverzeichnis

HTML: <button> formnovalidate Attribut

Das Attribut formnovalidate ist ein boolesches Attribut. Wenn dieses Attribut verwendet wird, wird bei der Übermittlung des Formulars der Überprüfungsprozess durch den Button nicht ausgeführt. Das Attribut formnovalidate überschreibt das Attribut novalidate des Formulars. Das Attribut formnovalidate wird nur für Buttons vom Typ "submit" verwendet.

 HTML <button> Tag

Online-Beispiel

Ein Formular mit zwei Absendeschaltflächen. Der erste Absendeschalter sendet die Formulardaten mit der Standardprüfung ab, der zweite Absendeschalter sendet die Formulardaten ohne Prüfung ab:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML <button> formnovalidate Attribut verwenden-Grund教程(oldtoolbag.com)</title>
</head>
<body>
<form action="action_page.php" method="get">
  E-mail: <input type="email" name="userid"><br>
  <button type="submit">Submit</button><br>
  <button type="submit" formnovalidate>Ohne Überprüfung absenden</button>
</form>
</body>
</html>
Testen Sie es heraus ‹/›

Browserkompatibilität

IEFirefoxOperaChromeSafari

Internet Explorer 10Firefox, Opera, Chrome unterstützen das Attribut formmethod.

Note: Safari, Internet Explorer 9 and earlier IE versions do not support the formmethod attribute.

Definition and Usage

The formnovalidate attribute is a boolean (boolean) attribute.

If this attribute is used, the button will not perform the validation process when the form is submitted. The formnovalidate attribute overrides the form's novalidate attribute.

This attribute is used in conjunction with type="submit".

HTML 4.01 difference from HTML5difference

The formnovalidate attribute is an HTML 5 new attributes.

Differences between HTML and XHTML

In XHTML, attributes are not allowed to be abbreviated, formnovalidate The attribute must be defined as <button type="submit" formnovalidate="formnovalidate">.

Syntax

<button type="submit" formnovalidate>

 HTML <button> Tag