开发者

Jquery attr function does not work in IE7

开发者 https://www.devze.com 2023-01-09 17:52 出处:网络
I am using jQuery 1.3.2, It seems the attr function does work in IE8 and FF 3 but not in IE7开发者_如何学编程.

I am using jQuery 1.3.2, It seems the attr function does work in IE8 and FF 3 but not in IE7开发者_如何学编程.

The problematic code:

.attr("disabled",true)

or

 .attr("disabled","disabled")

Is there an alternative way to disable an element? (a specific option in a SELECT element)

Thank you.


IE 7 does not support disabled in select options. It's not a jQuery issue.

There's detailed info in this blog post.

There are Javascript based workarounds like this one that add the functionality (however, even they are not able to give the select the greyed-out look.)

0

精彩评论

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