I had this exact issue once.  It was extremely easy to resolve too.  What I did 
was incorporate a click event for that tab into the message list of the 
validator.

messages: {
        Fieldname: {
                required: function(){$("<child link of relevant tab 
here>").click();return;}
}

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas 
R
Sent: Sunday, April 13, 2008 1:02 AM
To: jQuery (English)
Subject: [jQuery] Re: Tabs & Validation


Perhaps you could prevent the user from accessing another tab when
there are errors on the tab he is currently looking at.

On Apr 12, 1:30 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> I think in this case you should reconsider using tabs at all. If you
> want to use tabs you should put error messages on top of the tab pane,
> so that the errors are visible to the user.
>
> --Klaus
>
> On Apr 10, 4:50 pm, MarcelloP <[EMAIL PROTECTED]> wrote:
>
> > Hi all!
> > I need a little advice; in a page I have a form with a tabs with 3 tab-
> > pages, all with input elements and all required; in this form I also
> > have enabled the splendid Validation plugin.
> > My concern is this: if a user fill only the inputs of the first tab-
> > page and leave blank the others, he cannot submit the form 'cause this
> > is correctly stopped by the validation plugin, but the problem is that
> > the user cannot see the invalid inputs (highlighted by the Validation)
> > on the others tabpages 'cause he is on the first.
>
> > Please, someone may suggest me the correct way to proceed within?
> > Thanks in advance.
>
> > MarcelloP

Reply via email to