`

jquery html() 在IE 和Firefox下区别

阅读更多
IE下,使用html()  时会得到用户输入的值,如你在一个<input id='test' type=text />中输入了3
那么用html()  获得结果就是 <input id='test' type=text value=3/>
用firefox 获取的就是<input id='test' type=text />

类似的还有:
<input type='radio' />
<input type='checkbox' />
<textarea ></textarea>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics