empty input of clone jquery

Solutions on MaxInterview for empty input of clone jquery by the best coders in the world

showing results for - "empty input of clone jquery"
Evann
25 Jun 2018
1$(document).ready(function() {
2  $(".Add").click(function() {
3    $(".formi")
4      .eq(0)
5      .clone()
6      .find("input").val("").end() // ***
7      .show()
8      .insertAfter(".formi:last");
9    
10  });
11  $('.all').on('click', ".cancel", function() {
12      $(this).closest('.formi').remove();
13    });
14});