Cloning Whole Form Elements After Clicking Button August 30, 2022 Post a Comment I have this following form & Solution 1: I think you need to duplicate the contents of (row-fluid), not the whole (Wrapper) contents, this should let you add more rows of your original form template when clicking on AddMore link. This is an edit to the suggested solution by @user2389688: $("#addMore").click(function(){ $(".row-fluid:last").clone().appendTo(".wrapper"); }); Copy JsFiddle Link: http://jsfiddle.net/tCY8v/1/ Solution 2: Something like this ? $("#addMore").click(function(){ var contents = $("form").html(); $("#wrapper").append(contents); }); Copy http://jsfiddle.net/tCY8v/Baca Juga$.getjson Return/scope Issue?Symfony 1.4: How I Can Retrieve The Selected Value With Ajax's Function In Select Dependent?Common Words Detect In Different Fields Jquery If I did understand your question correctly. Solution 3: For example: $('#addMore').click(function() { $('.row-fluid').eq(0).clone().insertBefore(this); }); Copy Share You may like these postsHidden Form File Post In JavascriptInput Attributes That Can Have The Same "name"In Scala Or Scalajs Diode, Do Any Of The Existing Types Line Up With The Use Case Of "updating A Model That Doesn't Yet Exist"?Integrate A Php Function With Jquery - Check If User Already Exists In Db Post a Comment for "Cloning Whole Form Elements After Clicking Button"