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); 

jsfiddle example

different versions of ie have issues jquery normalizes, such you're seeing event.target.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -