jQuery plug in popup

jQuery plug in popup

Hi All,

I current used jquery plug in SImple Model ( http://www.ericmmartin.com/projects/simplemodal/) to do a popup windows, where it is iframe from an .NET aspx page.

inside the popup windows, I have few checkbox controls and have validation on buttons click.

however I encounter 1 issue where if the user close the popup windows, there is no validation take place.

is there possible to make the validation on windows close? else a simple confirmation notification to inform user that their data is not save upon close on the popup windows will do.

please help to give some suggestion, thanks in advance.