Thank you! Your code worked great and your explanation of the space
and > is just what was needed.
Based on your explanation of >, because there was no > before the li,
it was finding an li at any depth with an input child. By adding the >
at the begging it is now only looking for direct children
Try
$("#el > li > input")
The (rough equiv) long-hand for that would be
$("#el").children("li").children("input")
So the space ( ) in css is analogous to .find(), and the
right-angled-bracket (>) to .children().
- Richard
On Wed, Sep 17, 2008 at 11:56 PM, vtjiles <[EMAIL PROTECTED]> wrote:
>
2 matches
Mail list logo