[Validate] Submit a form to a popup window with jQuery and Bassistance Validation
Hello,
I can use Bassistance Validation plugin relatively easy, and in Ex.1 there is the code I use when I want to validate a form and then submit it (I use "submitHandler" because I perform some actions after the form is validated, i.e. disable the submit button)
This is very fine, but what if I want to submit the form to a popup window?
I tried some code based on a tutorial (http://www.electrictoolbox.com/post-form-popup-window-javascript-jquery/) and tried to merge with validation, but have absolutely no luck: the tutorial works fine when used standalone, but no way to use in with Bassistance Validation
Please, can you help?
Thanks
Ex.1
$("#formMain").validate({
// some validation (rules, messages, etc.) here...
submitHandler: function(form) {
$("input[type=submit]").attr("disabled", "disabled");
form.submit();
}
});