Hi,
You don't need to set an "enabled" attribute. And instead of setting el.attr('disabled','disabled'), try el.attr('disabled', true)
Also, I'm a little surprised that your "el" selector is working:
var el=$(this).parent().next('td select')
This way is more reliable: var el=$(this).parent().next('td').find('select'); Hope that helps. --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 1, 2008, at 9:59 AM, alivemedia wrote:
I am trying to disable / enable a select drop down list. Works fine in IE but not in FF. I have a check box that when checked the select becomes enabled when unchecked then it become disabeled. Here is my code: $('input[type=checkbox]').bind("click",function(){ var el=$(this).parent().next('td select') if (this.checked) { el.removeAttr("disabled"); el.attr("enabled","enabled"); } else { el.removeAttr("enabled"); el.attr("disabled","disabled"); } }).each(function(){ var el=$(this).parent().next('td select'); if (this.checked) { el.removeAttr("disabled"); el.attr("enabled","enabled"); } else { el.removeAttr("enabled"); el.attr("disabled","disabled"); } }); thanks for any help!!!