Clear the value of the inputs after clone(). You can use the method find()to get all the inputs inside the cloned element.
var c = $('.list-items:first').clone();
c.find("input").val("");
c.appendTo("#items").addClass('isVisible');
Here is a working jsbin example
, p. p div.
$(function(){
$('.add-item').on('click', function(e) {
event.preventDefault();
var value = $('#items-field').val();
if (value!="") {
var c = $('.list-items:first').clone();
c.find("input").val("");
c.appendTo("#items").addClass('isVisible');
c.find("p").text(value);
}
});
})
-