日期:2014-05-16  浏览次数:20349 次

关于插入文本框的问题,请教高手
能否实现插入文本框这个功能?
在本页插入类似这样一行:
<input   name= "textField "   type= "text "   value= " ">
请问能否实现这个功能?如何实现?多谢了!!

------解决方案--------------------


document.createElement( " <input name= 'textField ' type= 'text ' value= ' '> ");
------解决方案--------------------
document.body.appendChild( document.createElement( " <input name= 'textField ' type= 'text ' value= ' '> ") );