tags:

views:

130

answers:

1

Hi All,

I am using jquery dialog box .It has a problem that it takes old values when i reopen a dialog. Is there any way i can reopen a dialog without having the old values. Can i use modal window instead of dialog? Can anyone give me an example how can i use modal window. Thanks

A: 

I am not sure if I fully understand your problem however I will have a guess!

You can hook into the open or close dialog events and reset the input values.

e.g using open

$('#elementId').dialog({
   open: function(event, ui) { 
      //clear input fields here
   }
});
redsquare
Thanks it's working.Since i m not registered user i cant mark your comment
Then register - its worth it:)
redsquare