Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sweet form

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
    function submitForm(form) {
        swal({
            title: "Are you sure?",
            text: "This form will be submitted",
            icon: "warning",
            buttons: true,
            dangerMode: true,
        })
        .then(function (isOkay) {
            if (isOkay) {
                form.submit();
            }
        });
        return false;
    }
</script>
Source by adnan-tech.com #
 
PREVIOUS NEXT
Tagged: #sweet #form
ADD COMMENT
Topic
Name
3+2 =