Hallo ich benutze BootstrapValidator. Die E-Mail-Validierung zählt diese [email protected]
gültig anstelle von [email protected]
.Bootstrap-Validator für E-Mail-Adresse
<div class="col-sm-4 form-group">
<div class="error-icon">
<label class="control-label">Email</label>
<input class="form-control" id="person_email" name="person_email" placeholder="eg: [email protected]" type="email">
</div>
</div>
Script
$('#basicBootstrapForm').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
person_email: {
validators: {
notEmpty: {
message: 'The email address is required'
},
person_email: {
message: 'The input is not a valid email address'
}
}
},
}
});
Jede Hilfe würde geschätzt.
Mögliche Duplikat sein [Validate E-Mail-Adresse in JavaScript?] (Http://stackoverflow.com/questions/46155/validate-email- address-in-javascript) – Tgsmith61591