Can be used to clear/reset a text box $('.newitem').val(''); Run this in a click function etc… $(".test").html("This is new");
$('.newitem').val('');
$(".test").html("This is new");
Maybe your looking for $('.newitem').empty();
$('.newitem').empty();