Return to Snippet

Revision: 40209
at January 27, 2011 17:12 by dropthenerd


Updated Code
/* Close the fancybox when you submit a form
 */
$('#myform').submit(function(){
	$.fancybox.close();
	return false;
});

/* Here's another approach,
 * but this time we're tied to the submit button
 */

$('#submit_button').click(function(){
	$.fancybox.close();
	return false;
});

Revision: 40208
at January 27, 2011 17:06 by dropthenerd


Initial Code
/* Close the fancybox when you submit a form
 */
$('#myform').submit(function(){
	$.fancybox.close();
	return false;
});

/* Here's another approach,
 * bu this time we're tied to the submit button
 */

$('#submit_button').click(function(){
	$.fancybox.close();
	return false;
});

Initial URL
http://www.dropthenerd.com/close-fancybox-when-you-submit-a-form-revisited

Initial Description

                                

Initial Title
Close a fancybox when you submit a form

Initial Tags
form, jquery

Initial Language
jQuery