Dima Vleskov Dima Vleskov - 5 months ago 48
jQuery Question

wordpress contact form 7 modal form after submit

I need to send a form (in COntact form 7) after filling in form and then there must show a modal window, i did it but i don't need this form show up on mobile devices if (window.width < 768) it has to show

modal_call_two - is a modal window.



on_sent_ok: "jQuery('#modal_call_two').show();"

Answer

You can just check the width of the window

if (jQuery(window).width() >= 768){
     jQuery('#modal_call_two').show();
}
Comments