开发者

jquery, need similar functionality of disable for select optoins

开发者 https://www.devze.com 2023-02-09 01:39 出处:网络
I am using coding like this: 开发者_如何学JAVA\\$(this).attr(\"disabled\", \'disabled\'); \\$(this).removeAttr(\"disabled\");

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

精彩评论

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