We have a similar problem. When trying to validate the modal dialog
box decides its tired and goes away. Not sure how to do validation on
the form without it disappearing...
On Jan 7, 10:39 am, Elan Noy wrote:
> I have amodalform that I want to validate.
> Themodalis based on the simplemodalplugin and thevalidationis
> based onvalidationplugin.
> Thevalidationworks well on a regular (nonmodal) form. ANy ideas?
>
>
> jQuery.validator.addMethod("zip", function(value, element)
> {
> return this.optional(element) || value.match(/^((\d{5}-
> \d{4})|(\d{5})|([a-z]\d[a-z]\s?\d[a-z]\d))$/i);
> }, "US or Canadian postal code only");
> $(document).ready(function(){
> getaddressBook();
> $("#addAddress").validate({
> rules: {
> emzip: {
> required: true,
> zip: true,
> },
> },
> });
> });
>