Ich benutze BootstrapValidator (identisch) zu überprüfen, beide E-Mails sind gleich oder nicht, es funktioniert gut, aber ich möchte Fehlermeldungen in der gleichen Zeile, jetzt sind sie in zwei Zeilen. Siehe hier https://screenshots.firefox.com/abfJ97LEjpAncVoW/localhost. Ich habe viel versucht und in Google gefunden, aber keine Lösung bekommen. . Meine Validierungscode folgend:Wie validiere ich beide E-Mails mit bootstrapValidator (identisch)
$('#formid').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-alert',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
firstmail: {
validators: {
notEmpty: {
message: 'The email address is required and can\'t be empty'
},
emailAddress: {
message: 'The input is not a valid email address'
},
identical: {
field: '2ndmail',
message: 'The email and its confirm are not the same'
}
}
},
2ndmail: {
validators: {
notEmpty: {
message: 'The email address is required and can\'t be empty'
},
emailAddress: {
message: 'The input is not a valid email address'
},
identical: {
field: 'firstmail',
message: 'The email and its confirm are not the same'
}
}
},
},
})