Web Development » Close FancyBox ON form Submit but BEFORE processing via ajax

Close FancyBox ON form Submit but BEFORE processing via ajax

So, we’re revisiting closing Fancybox AGAIN. Hope you enjoy this one.

Rather than wait for your form to get processed – especially when you know it’s not a matter of if but when it succeeds – you may want to close your fancybox and let the user continue visiting your site or doing what they need to do. Here’s my a little snippet that you may find useful.

Click for a demo (it’s the one at the bottom)

Snipplr Code

Comments