I’ve got this code, that works in the latest version of firefox, opera and I’m not sure if in IE8, but it doesn’t work in Google Chrome, Safari and ofc IE7 and 6.
The script I have is a bit more complicated, but the problem is in this:
<select>
<option class='gramaz_vyber'>1</option>
<option class='gramaz_vyber'>2</option>
</select>
And the jQuery:
$('.gramaz_vyber').click(function() {
$(this).hide();
});
As I wrote before, the code I have looks different, but I need to start a function after I click on the <option> and it only works in FF/Opera … any idea how could I get around it?
It is funny indeed, it seems that you cannot use hide() on option elements in IE7 (not tested on IE8).
But the following code works:
The difference is that you are removing the object from DOM instead of simply hiding it.