开发者

IE6 and JQuery Selectors with Spaces

开发者 https://www.devze.com 2023-01-17 07:01 出处:网络
The following doesn\'t seem to work in IE6. However, it works with IE7+ and firefox. I think I have had a similar issue before where IE6 doesn\'t like spaces in JQuery selectors. However, I don\'t kno

The following doesn't seem to work in IE6. However, it works with IE7+ and firefox. I think I have had a similar issue before where IE6 doesn't like spaces in JQuery selectors. However, I don't know how to re-write this so IE6 will accept it.

$('#other_stages :checkbox:not(#section_2_active, #co_t)').change();

I have also tried the following and it didn't work开发者_如何学编程 either:

$('#other_stages').find('input[type=checkbox]:not(#section_2_active,#co_t)').change();

Thanks all for any help


It works for me on IE6: http://jsbin.com/ekoli4/2

0

精彩评论

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