Horje
html add input on button click Code Example
html add input on button click
function add() {
  var new_chq_no = parseInt($('#total_chq').val()) + 1;
  var new_input = "<input type='text' id='new_" + new_chq_no + "'>";
  $('#new_chq').append(new_input);
}

function remove() {
  var last_chq_no = $('#total_chq').val();
  if (last_chq_no > 1) {
    $('#new_' + last_chq_no).append('');
    $('#total_chq').val(last_chq_no - 1);
  }
}




Html

Related
jquery animation move point Code Example jquery animation move point Code Example
html q tag Code Example html q tag Code Example
vue-date-pick Code Example vue-date-pick Code Example
prettier html formatting Code Example prettier html formatting Code Example
line under text html Code Example line under text html Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7