I'm using this script in Chrome and it works fine. But IE 8 or 9 does not work. I put a debugger and an alert to debug, but it does not even enter the function.
$(document).on("mousedown", '#CentroCusto_new option', function (event) {
alert('oi');
this.selected = !this.selected;
event.preventDefault();
});
Does anyone know why and how to fix it?