I had my name and id attributes with different values, this was messing up
IE. When I named them the same, it started working.
-- Josh
----- Original Message -----
From: "Josh Nathanson" <[EMAIL PROTECTED]>
To: <jquery-en@googlegroups.com>
Sent: Wednesday, May 09, 2007 2:06 PM
Subject: [jQuery] remove attribute disabled from select - IE6
Hey all,
It seems as though in IE6, doing $("select").removeAttr("disabled") has no
effect, i.e. it doesn't "re-enable" the select menu. My code works fine
in FF. Is this known behavior and is there a workaround, or am I missing
something?
I started out trying to set disabled=false, which worked in FF, but I
thought I remembered that didn't work in IE. That's when I went to
removeAttr, but I'm finding that doesn't work either.
In the code below, "cb" is a jQuery object/checkbox, and "#sbs_menu" is a
select element.
var disbl = function(cb) {
if(cb.attr("checked")) {
$("#sbs_menu").removeAttr("disabled");
}
else {
$("#sbs_menu").attr("disabled","true");
}
}
-- Josh