toshniba
toshniba

Reputation: 381

ajaxform: how to remove it, so default submit action is taken

how can I remove an ajaxForm from the form element so the default action is taken?

$('form').off('ajaxForm')

or

$('form').unbind('ajaxForm')

do not work

initialization was $('form').ajaxForm({...});

Upvotes: 2

Views: 4035

Answers (1)

Arun P Johny
Arun P Johny

Reputation: 388326

Try using the ajaxFormUnbind, method provided by the plugin

$('form').ajaxFormUnbind()

Demo: Fiddle

Upvotes: 12

Related Questions