Thanks guys!, parents("div:first") did the trick. ( $(this).parent().nextAll('div:first') didn't seem work, which I'm assuming is because the immediate parent is the <p> tag for the input.)
On Jan 31, 1:52 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > Another option is: > > $(this).parent().nextAll('div:first') > > - Richard > > On Jan 31, 2008 1:27 PM, Glen Lipka <[EMAIL PROTECTED]> wrote: > > > How about parents("div:first") > > > Glen > > > On Thu, Jan 31, 2008 at 8:54 AM, rickcr <[EMAIL PROTECTED]> wrote: > > > > This should be easy, but I'm stumped on this. I can't find examples > > > showing cases where the find 'skips ahead' .. what I want to is find > > > the next <div> after any of the radio inputs is clicked so that if I > > > have... > > > > <div> > > > <p><input type="radio" name="color" value="blue"/> Blue</p> > > > <p><input type="radio" name="color" value="green"/> Green</p> > > > <p><input type="radio" name="color" value="red"/> Red</p> > > > > <div class="childSec"> > > > Stuff > > > </div> > > > </div> > > > > $(":[EMAIL PROTECTED]'color']").click( function () { > > > $(this).parent().parent().find('div.childSec') //must be > > > something better than parent, parent? > > > }); > > > > I've been trying different selectors for 'div' inside of parent and > > > prev but not having much luck. I'm sure I'm missing something stupid. > > > Any help appreciated.