Answers for "empty input of clone jquery"

0

empty input of clone jquery

$(document).ready(function() {
  $(".Add").click(function() {
    $(".formi")
      .eq(0)
      .clone()
      .find("input").val("").end() // ***
      .show()
      .insertAfter(".formi:last");
    
  });
  $('.all').on('click', ".cancel", function() {
      $(this).closest('.formi').remove();
    });
});
Posted by: Guest on August-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language