I have this function
jQuery("form#add_cv").submit ( function(){
if (Spry.Widget.Form.validate(this) == true){
jQuery("#show_rules").fancybox({
'padding' : 0,
'autoScale' : false,
'autoDimensions': false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'width' : 600,
'height' : 450,
'titlePosition' : 'inside',
'scrolling' : 'no'
}).trigger('click');
jQuery('div#sb_buttons button#cancel_submit').click(function() {
$.fancybox.close();
return false;
});
jQuery('div#sb_buttons button#submit_form').click(function() {
jQuery("form#add_cv").submit("true");
$.fancybox.close();
return true;
});
return false;
}
});
On clicking on ok button
jQuery('div#sb_buttons button#submit_form').click(function() {
jQuery("form#add_cv").submit("true");
$.fancybox.close();
return true;
});
, from fancybox window . Form from actual page is submitting , and fancybox window is closing then the submit function is repeating again , how can i solve the problem ... sorry for this kind of question ... but i don't have idea what to do , and sorry for my English , hope you will understand me :) Thanks