how to clear list before append in jquery code example Example: jquery empty and append $('#somDiv').empty().append('text To Insert')