joomla - Jquery to change href -
i have used javascript change href when browser width goes below 767px. using same code on different site link side pop out not work above 767px redirect correct page below 767px. please can me make changes anchor open side pop out works above 767px.
site: http://signfit.multi-web-services.co.uk/
jquery:
jquery(document).ready(function() { jquery('.pwebcontact229_toggler').off().click(function (e) { e.preventdefault(); if (jquery(window).width() < 767) { window.location = '/contact-us'; } else { pwebcontact229.toggleform(); } }); });
the problem event being fired , changing document ready window load seems have fixed issue.
don't know if correct way javascript novice; seems have worked me though!
Comments
Post a Comment