[jQuery] Re: newbiish.. must be a better way than what I'm doing to find the next div after the following inputs?

2008-01-31 Thread rickcr
On Jan 31, 4:57 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > Hmm. It worked for me. I actually tested it. :) $(this).parent() selects the > tag. .nextAll() gets all the next elements (forward siblings), then the > 'div:first' filter finds the first one that's a div. Oh well, Glen's > sol

[jQuery] Re: newbiish.. must be a better way than what I'm doing to find the next div after the following inputs?

2008-01-31 Thread Richard D. Worth
Hmm. It worked for me. I actually tested it. :) $(this).parent() selects the tag. .nextAll() gets all the next elements (forward siblings), then the 'div:first' filter finds the first one that's a div. Oh well, Glen's solution is fine. - Richard On Jan 31, 2008 2:16 PM, rickcr <[EMAIL PROTECTED]

[jQuery] Re: newbiish.. must be a better way than what I'm doing to find the next div after the following inputs?

2008-01-31 Thread rickcr
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 tag for the input.) On Jan 31, 1:52 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > Another option is: > > $(this).parent

[jQuery] Re: newbiish.. must be a better way than what I'm doing to find the next div after the following inputs?

2008-01-31 Thread Richard D. Worth
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

[jQuery] Re: newbiish.. must be a better way than what I'm doing to find the next div after the following inputs?

2008-01-31 Thread Glen Lipka
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 after any of the radio inputs is click