> Jörn, that would be great, is there some direction you can give me on how
> to
> achieve that on my own if I were to user your code?
> 
> thanks for the help.

Sure. Add an option called 'callback' or something similar. Within isFormValid, 
check if that option is set and call it instead of returning true. Either 
return false directly afterwards or return the return value of the callback, 
then the callback can decide wheather the form should be submitted or not.

Something like this (in isFormValid):
if(this.settings.submitHandler) {
        // delegate submission to handler
        this.settings.submitHandler(this.currentForm);
        return false;
}

and add this to the default settings:
submitHandler: null,

--
Jörn Zaefferer

http:/bassistance.de
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to