Then this:

,success: function(element){
157 var errorDiv = element.parents('.error');
158 element.remove();
159 errorDiv.siblings().remove();
160 errorDiv.replaceWith(errorDiv.children());
161 }

You replace the div? That causing the DOM to rerender, including the input,
killing the focus.

Jörn


On Fri, Nov 13, 2009 at 6:17 PM, Samuurai <djbe...@gmail.com> wrote:

> Strangely, It seems to be doing it even after removing jNice. - I've
> updated the test site.
>
> On Nov 13, 4:23 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
> wrote:
> > Looks like jNice is causing that issue. Did you try removing that to see
> > what happens?
> >
> > Jörn
> >
> > On Fri, Nov 13, 2009 at 4:58 PM, Samuurai <djbe...@gmail.com> wrote:
> > > Yeah..
> >
> > >www.racedaystaff.com- log in as jorn/jorn then click "proceed to
> > > site" then click "register" at the top.
> >
> > > Thanks for looking at this !
> >
> > > On Nov 13, 3:51 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
> > > wrote:
> > > > Do you have a testpage?
> >
> > > > Jörn
> >
> > > > On Fri, Nov 13, 2009 at 4:40 PM, Samuurai <djbe...@gmail.com> wrote:
> > > > > I'm having a strange problem with jNice and the validation plugin.
> >
> > > > > Probably the easiest way to describe the error is by giving an
> > > > > example.
> >
> > > > > I load the page with my form on it, then without typing anything, I
> > > > > click submit. The jQuery validation plugin puts errors around my
> > > > > fields saying "This field is required".
> >
> > > > > However, when I try to type something into the input fields to
> satisfy
> > > > > the validation, I can type a couple of letters, three or four if
> i'm
> > > > > really fast, but as the validation plugin removes the error box, it
> > > > > shifts focus away from the input box.
> >
> > > > > Strangely, this same behaviour continues on the same field even
> after
> > > > > the error box has been removed.. the focus gets 'stolen'.
> >
> > > > > Has anyone had any experience using jQuery validation plugin with
> > > > > jNice?
>

Reply via email to