How to create <input type=“text”/> dynamically

后端 未结 12 1050
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 10:47

I want to create an input type text in my web form dynamically. More specifically, I have a textfield where the user enters the number of desired text fields; I want the tex

12条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 11:34

    Maybe the method document.createElement(); is what you're looking for.

提交回复
热议问题