Revision: 40209
Updated Code
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
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
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