/ Published in: jQuery
URL: http://www.dropthenerd.com/close-fancybox-when-you-submit-a-form-revisited
Expand |
Embed | Plain Text
/* 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; });
You need to login to post a comment.
