javascripts/contact-us-modal.js
//create an alert when form is submitted
create an alert when form is submitted
create an alert when form is submitted
function myfunction(){
var empty = $('#droparea').find(".fld-input").filter(function() {
            return this.value === "";
        });
        if (!(empty.length)) {
            $('#contactModal').modal();
            $('#contactModal').on('hidden.bs.modal',function(){
               submitForm();
            });
        }
}
function myfunction ( ) { var empty = $ ( '#droparea' ) . find ( ".fld-input" ) . filter ( function ( ) { return this . value === "" ; } ) ; if ( ! ( empty . length ) ) { $ ( '#contactModal' ) . modal ( ) ; $ ( '#contactModal' ) . on ( 'hidden.bs.modal' , function ( ) { submitForm ( ) ; } ) ; } }
create an alert when form is submitted
create an alert when form is submitted
//all inputs are filled 