Dima Vleskov Dima Vleskov - 1 year ago 193
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 Source

You can just check the width of the window

if (jQuery(window).width() >= 768){
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download