I'm using the JQuery 1.8.3 and the Dropkick plugin to customize select's in my site. (https://github.com/JamieLottering/DropKick).
The dropkick plugin generates an HTML like this:
<div class="dk_container dk_theme_default dk_open" id="dk_container_min-price" tabindex="" style="display: block;">
<a class="dk_toggle" style="width: 117px;"><span class="dk_label">Min pris (€/$)</span></a>
<div class="dk_options" style="top: 29px;">
<ul class="dk_options_inner">
<li class="dk_option_current"><a data-dk-dropdown-value="0">Min pris (€/$)</a></li>
<li class=""><a data-dk-dropdown-value="50000">50.000</a></li>
<li class=""><a data-dk-dropdown-value="75000">75.000</a></li>
</ul>
</div>
The problem is, i need to do some specific things when the user clicks on one of the options, so i binded an event to the click on the option, like below:
$('.dk_options_inner li').on('click', function(){
alert('this');
});
It works well in Chrome and Firefox, but in IE (i've tried IE10, IE9 and IE8) it doesn't work.
Here's a jsfiddle that shows the problem: http://jsfiddle.net/NPRPf/2/
I've tried using .bind() and .on(), but none of them worked in IE (and both worked on the other browsers). I've also tried changing the css of the dk_options to "visibility:hidden" instead of "display:block", but it also didn't work.
Does anyone have any idea of what might be going on?