you could empty the element before you append
$("#results").empty().append(myHtml);
or use the html method
$("#results").html(myHtml)
you could empty the element before you append
$("#results").empty().append(myHtml);
or use the html method
$("#results").html(myHtml)