I spent a good couple hours fighting with IE and finally found a solution to fix the disabled option issue. Hope it helps you out.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ieLessThan8OptionDisable = function() { if ($.browser.msie && parseFloat($.browser.version) < 8) { $("select").find("[disabled]").addClass("disabled").removeAttr("disabled"); $("select").change(function(){ var selected = $(this).val(); var disabled = $(this).find("[value="+selected+"]").hasClass("disabled"); if (disabled) { alert("This option is disabled.\nSelect will be set to the first option."); $(this).find("option:first").attr("selected","selected"); } }); } } |


[...] Comments | Posted by Brant in Development In the previous post I was using jQuery’s $.browser method that has been depreciated. I went ahead and added a [...]