ajaxsubmit
ajaxsubmit copied to clipboard
unBind or destory method
Hi guys, what about destroy or unbind method? Is it available? How can i unbind the plugin?
I am not sure what do you mean. Please explain
i have a lightbox plugin that shows a form loaded via ajax. On load event i'm starting the plugin and all fine, but when popup closed and opened again plugin initializing again and by one-click form send the result twice e.t.c, so i want to unbind ajaxSubmit on popup close.
onLoad:function(){ $('.box form').ajaxForm(); }, onClose:function(){ //unbind plugin }