复选框属性" checked"在FF工作,但不在IE ...工作请... [英] checkbox property "checked" working in FF but not in IE ... suggestions please ...

查看:66
本文介绍了复选框属性" checked"在FF工作,但不在IE ...工作请...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

解决方案

try checked = true


I don'不知道为什么,但如果你将输入元素附加到文件首先,你可以设置检查值:


cell1.appendChild(inp1) ;

inp1.checked =" checked";


Opera似乎也需要这个,而且它需要
应用firefox中的值,也不在乎。


有趣的从未尝试过。

Expand|Select|Wrap|Line Numbers

解决方案

try checked=true


I don''t know why, but if you append the input element to the document first,you can then set the checked value:

cell1.appendChild(inp1);
inp1.checked = "checked";

This also seems to be needed by Opera, and it
will apply the value in firefox,which doesn''t care, just as well.


thats interesting never tried that.


这篇关于复选框属性" checked"在FF工作,但不在IE ...工作请...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆