Forms and dialogs

Forms and dialogs

Hi all,

I'm using a dialog for users input data.

I use the plugin validation to validate the form.

I've included two buttons in the dialog ( a OK button and a Cancel) and I do this with the options that the dialogs already has.

My problem is: How can I force the validation when the user clicks in the Ok button. Can I link this button with the form?

If anyone have done this before could tell me how do I do it?

Cheers