mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 00:29:52 +02:00
Fix forms validation snippets.
This commit is contained in:
@@ -96,8 +96,9 @@ Custom feedback styles apply custom colors, borders, focus styles, and backgroun
|
||||
<button class="btn btn-primary" type="submit">Submit form</button>
|
||||
</div>
|
||||
</form>
|
||||
{{< /example >}}
|
||||
|
||||
<script>
|
||||
{{< example lang="js" show_preview="false" >}}
|
||||
// Example starter JavaScript for disabling form submissions if there are invalid fields
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -118,7 +119,6 @@ Custom feedback styles apply custom colors, borders, focus styles, and backgroun
|
||||
}, false);
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
{{< /example >}}
|
||||
|
||||
## Browser defaults
|
||||
|
Reference in New Issue
Block a user