开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜