Submitting the form from the site is implemented using ajax. And from desktops and tablets everything is sent. Only here success only works on deckstop. Why is that?
$("#form-popup").submit(function() { //Change var thp = $(this); $.ajax({ type: 'POST', url: 'mail.php', data: thp.serialize(), success: function() { $.magnificPopup.open({ items: { src: "#thanksModal", type: 'inline' } }); setTimeout(function() { // Done Functions thp.trigger("reset"); $.magnificPopup.close(); }, 2000); } }); return false; });
magnificPopupdoesn't work on tablets, but notsuccess? - Igorerrorhandler to the$.ajaxparameter and see if it is called - Igor