Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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();
    });
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: node.js f string 
Javascript :: javascript video feed 
Javascript :: firebase update users 
Javascript :: to add autofix when saving files in Eslint 
Javascript :: opening a link in another tab in react 
Javascript :: check all values from keys in object js 
Javascript :: react native text input select all text on focus 
Javascript :: print object key value javascript 
Javascript :: javascript index of min value in array 
Javascript :: javascript change input value 
Javascript :: Regular expression: Match everything after a particular word 
Javascript :: javascript name capitalization 
Javascript :: get placeholder innertext 
Javascript :: console.time 
Javascript :: how to check if an object is map in javascript 
Javascript :: how do you make a random array in javascript 
Javascript :: get keys of object in an array 
Javascript :: statusbar height react native 
Javascript :: jquery window redirect with header 
Javascript :: javascript remove empty array 
Javascript :: array to string javascript without commas 
Javascript :: pageyoffset jquery 
Javascript :: typeof array javascript 
Javascript :: how to use bootstrap icons in react components 
Javascript :: docker react 
Javascript :: aos animation angular 
Javascript :: compare two dates using moment 
Javascript :: javascript disable resize window 
Javascript :: how to disable onclick event in javascript 
Javascript :: datepicker auto close 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =