I am having trouble to clear text field value created from jQuery clone function. I am just copying add_new_content content and appending that one with last
You can match the cloned <input> element with find() and reset its value with val():
$('.add_new_content:last').clone()
.find("input:text").val("").end()
.appendTo('.add_new_content:last');
remove the value after you clone it eg.
var $clone = $('.add_new_content:last').clone();
$clone.find('input').val('');
$clone.appendTo('.add_new_content:last');
set the value right before, or after, you clone it.
$(document).ready(function(){
$(".add_new_box").live('click',function(){
var clone = $('.add_new_content:last').clone();
clone.find("input").val("");
clone.appendTo('.add_new_content:last');
});
});