lilyzhang

JavaScript实现动态添加Html控件

2009-10-17 15:51  floweriness  阅读(266)  评论(0编辑  收藏  举报
function Dom()
        {
            var textControl=document.createElement("input");
            textControl.setAttribute("type","text");
            textControl.setAttribute("name","txtDom");
            textControl.setAttribute("runat","server");
            document.getElementById("Show").appendChild(textControl);
        }

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2021-09-08
  • 2021-10-18
  • 2021-05-09
猜你喜欢
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-09-04
相关资源
相似解决方案