jquery - .toggle() does not work with IE9 -
i want show information when hitting link can find here: http://jsfiddle.net/t4f8yer0/1/
html:
<a href="#" class="more">show more</a> <br> <div class="toggle"> more </div>
js:
$(document).ready(function(){ $(".toggle").css('display','none'); $( ".more" ).click(function() { $(event.target).next().next().toggle( "slow" ); }); });
this works chrome , ie edge not ie9 or ie10. there solution problem?
instead of:
$(event.target);
use:
$(this);
different versions of ie have issues jquery normalizes, such you're seeing event.target.
Comments
Post a Comment