Add / remove input field dynamically with jQuery

前端 未结 12 1858
闹比i
闹比i 2020-12-02 06:14

I would like to use jquery to build a dynamic add/ remove form. IT should look like:

Name Type Required?

The example input :

  • Name Type Require
12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-02 06:42

    why not remove the .after() in the line

    newTextBoxDiv.after().html('' +
    

    to

    newTextBoxDiv.html('' +
    

提交回复
热议问题