Sunday, 15 September 2013

There is no alert when submitting a form using ajaxForm plugin

There is no alert when submitting a form using ajaxForm plugin

How can I have an alert that the form has been submitted successfully? I
have already tried to look at the page of the plugin still come up empty
handed.
This is the code I have tried so far maybe there is something wrong with
my syntax:
<script type="text/javascript">
$(document).ready(function(){
$('#f1').ajaxForm({
success: function(){
alert("Form successfully submitted");
}
});
});
</script>
The code above works and successfully inserted all the data in the forms
but the alert that suppose to appear after successfully submitted the form
is missing for some reason.

No comments:

Post a Comment