alert(document.getElementsByName("readonly")[0].value);
解决方案 »
- 非常有用的仿Winform的dock布局
- window.external.m2_blocked报错
- 关于getElementById()
- 怎么修改body的css,请大虾们指教下
- 高分求教:div 的 contentEditable 设为 true 后,能否把 此 div 中的一些控件设为不可删除
- 求教:如何更改页面标题栏上的图标?
- 怎么用下拉菜单改变传输值
- JS 获取table下第二行控件的值
- 如何判断一个页面下载完成呢?
- 请孟子E章,sunmingdong(),danky(),bencalie(Bencalie),harryyang(crane) 来领分,谢谢!
- document.write 使得iframe一開始就運行js中的一個function。怎樣做呢?
- 高分请教大家!
element明显已经在js载入前解释了
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">readonly</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="readonly"/>
</xsl:attribute>
</xsl:element>等于<input type="hidden" name="readonly" value="值" />
2. getElementsByName("readonly")返回的是一个集合 应该用
getElementsByName("readonly")[0].value