
bootbox and form validation (html5)
Hi,
i added this piece of code to my form:
<script>
$('#SubmitContact').on('click', function (e) {
e.preventDefault();
bootbox.confirm("Weet u het zeker?", function (response) {
if(response) {
$('#contactenform').submit();
}
});
});
</script>
Since I added this code, the HTML5 form validation does not work anymore. Anyone know a way around this?
Corné
Hi,
i added this piece of code to my form:
<script>
$('#SubmitContact').on('click', function (e) {
e.preventDefault();
bootbox.confirm("Weet u het zeker?", function (response) {
if(response) {
$('#contactenform').submit();
}
});
});
</script>
Since I added this code, the HTML5 form validation does not work anymore. Anyone know a way around this?
Corné
Login to reply