Refresh a list


#1

I now have things being deleted dynamically from a list. The problem now
is that when I add something to that list it hits the database getting
all the correct users and the things associated with those users.
However, some of the items are duplicated because the list is not being
cleared when something is added and the new list generated. Is there a
way to clear everything that is in a div with an id so I can re-populate
that div with new information?


#2

I figured it out. In the remote_form_tag that I was using I had the
option for :position =>‘bottom’. I left that out and the form and
everything displayed correctly without any duplicated information.