New topic Closed topic
avatar image
1
bootbox and form validation (html5)
By Created , last editted

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é

Answers
Sort by:

This topic is closed.