现在的位置: 首页 > 综合 > 正文

*IE动态创建Radio的时候 必须先指定Name属性

2012年08月01日 ⁄ 综合 ⁄ 共 275字 ⁄ 字号 评论关闭
1、radio在没有name属性时是选择不了的,name属性起了对几个radio分组的作用,而checkbox没有此限制

2、The NAME attribute cannot be set at run time on elements dynamically created with the createElement method. To create an element with a name attribute, include the attribute and value when using the createElement method.
name属性不能在运行过程中进行变更,只能在创建时指定

抱歉!评论已关闭.