jquery, need similar functionality of disable for select optoins
I am using coding like this:
    开发者_如何学JAVA            \$(this).attr("disabled", 'disabled');
            \$(this).removeAttr("disabled");
This would only disable the option. I want to have the same accessibility and coding but I would prefer to make it invisible on the drop down menu instead.
thanks
You'll need to remove() it and re-add them. You could try hide() and show(), but at least IE won't support it.
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论