Skip to content

Useful Code Snippets

Daniel Evans edited this page Dec 13, 2016 · 16 revisions

Make Any '<form>' an ajax-form

Add the following

<script>
$("#formID").ajaxForm(function(message){
    toastr.info(message);
    setTimeout(function(){
        location.reload(true);
    }, 1500);
});
</script>
Clone this wiki locally