tags:

views:

49

answers:

1

Hi, I'm searching how to clear the contents of a popup on close.

I basically have a page with contacts, of which the details can be shown by clicking on an icon in the list.

So the same popup can be reused several times if I click on an icon several times.

However, when I click a second time on the icon, the data from the previous user is still there.

How can I clear that?

This question is similar to http://stackoverflow.com/questions/1345584/jquery-clean-old-dialog , however, there they are looking for how to clear the form contents...

A: 

I assume, you place the result into particular div or table in the pop up.So you can empty the content of the result's div or table and place your content.

vinothkumar
$('#modal-dialog').html(''); did the trick indeed
Bertvan
In the close event, that is...
Bertvan