[jQuery] Re: New to jQuery --> Dynamically navigating the DOM

2008-10-16 Thread Jub
Hi Ricardo, Thanks for the reply. Unfortunately there are multiple fields which all need independent error messages - sticking into a class would trigger the same error message for all inputs. :-) On Oct 17, 4:35 am, ricardobeat <[EMAIL PROTECTED]> wrote: > You shouldn't rely on this kind of '

[jQuery] Re: New to jQuery --> Dynamically navigating the DOM

2008-10-16 Thread ricardobeat
You shouldn't rely on this kind of 'navigation' for the exact reasons you are having problems. Elements in the DOM will change positions everytime you manipulate them, this relative navigation is prone to errors. Base your code on IDs, classes and think always from the top to bottom (parent > chil