Provide valuable, actionable feedback to your users with HTML5 form validation–available in all our supported browsers.
<StyleSheet StyleSheet="Framework.bootstrap.bootstrap.css" /> <StyleSheet ShowModes="rdBrowser" StyleSheet="Framework.bootstrap.Overrides.css" /> <StyleSheet ShowModes="rdBrowser" StyleSheet="Fonts.combined.css" /> <StyleSheet ShowModes="rdBrowser" StyleSheet="Framework.css.Layout.css" /> <IncludeScriptFile ID="jquery" IncludedScriptFile="Framework.bootstrap.jquery.min.js" /> <IncludeScriptFile ID="bootstrap" IncludedScriptFile="Framework.bootstrap.bootstrap.js"> <Note Note="Includes Bootstrap.min.js, Popper.js or tether.js" /> </IncludeScriptFile>
Here’s how form validation works with Bootstrap:
:invalid
:valid
<input>
<select>
<textarea>
.was-validated
<form>
.is-invalid
.is-valid
<label>
setCustomValidity
Set .required class as validation field by adding $('.required').attr('required','required').unwrap().removeClass('required');.
.required
$('.required').attr('required','required').unwrap().removeClass('required');