[ACCEPTED]-.clone() method in jquery without copying value-html
Accepted answer
You can try the code below. By the way, if 3 you use the last version of jQuery I'd suggest 2 using on
method instead of live
(here instead 1 of body
you can use any parent of a
element).
$("body").on("click", "a", function() {
$("ul:last").clone().appendTo(".str").find("input[type='text']").val("");
});
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.