I've got a contact form opening in a FancyBox 2 modal window. But when you submit the form, current page got refreshed and contact form gets disappeared.
You can check this bug in my site by clicking support in main menu
Here's my code,
$(document).ready(function() {
$(".various").fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
width : '70%',
height : '70%',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
});
and this is my contact form link,
<a href="formhome.php" class="menu-support fancybox.ajax">Support</a>
Can anyone tell me how to submit my contact form in fancy box without reloading the page please?