Add / remove input field dynamically with jQuery

前端 未结 12 1873
闹比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:47

    In your click function, you can write:

    function addMoreRows(frm) {
       rowCount ++;
       var recRow = '

    Delete

    '; jQuery('#addedRows').append(recRow); }

    Or follow this link: http://www.discussdesk.com/add-remove-more-rows-dynamically-using-jquery.htm

提交回复
热议问题