In your example you are using jQuery-2.0.2
but since jQuery-2.0
it dropped the support for IE-6/7/8
. From jQuery 2.0 Released | Official jQuery Blog :
No more support for IE 6/7/8: Remember that this can also affect IE9 and even IE10 if they are used in their “Compatibility View” modes that emulate older versions. To prevent these newer IE versions from slipping back into prehistoric modes, we suggest you always use an X-UA-Compatible tag or HTTP header. If you can use the HTTP header it is slightly better for performance because it avoids a potential browser parser restart.
Here is a working fiddle using jQuery-1.9.1
.