Sandbox-2

Dynamically Add or Remove input fields in PHP with JQuery


Dynamically Add or Remove input fields in PHP with JQuery

}); $(document).on('click', '.btn_remove', function(){ var button_id = $(this).attr("id"); $('#row'+button_id+'').remove(); }); $('#submit').click(function(){ $.ajax({ url:"name.php", method:"POST", data:$('#add_name').serialize(), success:function(data) { alert(data); $('#add_name')[0].reset(); } }); }); }); Dynamically Add or Remove input fields in PHP with JQuery


Dynamically Add or Remove input fields in PHP with JQuery