javascript - Lightbox not opening on iPhone -
i made own lightbox javascript , css somehow wont work on iphones.
why that?
jquery( document ).ready(function() { //lightbox open jquery('.lightbox_trigger').css('cursor','pointer'); jquery('.lightbox_trigger').live('click', function(){ jquery('#overlay, #lightbox').show(); }); }); <a href="#" class="lightbox_trigger qbutton or-border-btn" onclick="">tickets</a>
as can see tried multiple things adding cursor: pointer , empty onclick. still wont work iphones. missing something?
try this:
jquery('.lightbox_trigger').live('click', function(e){ e.preventdefault();
i think iphone try go # href
if put preventdefault
don't have behavior.
Comments
Post a Comment