Trying to build a ajax comment system .I have a list populated from MYSQL database.And displaying that list works fine.but when user adds his comment the entire database gets appended to my already printed list.is there another method to empty the list first ?since appending will just append to the already created list.I want to clear the list first and then add again.
Share
use
.empty()instead of just