I would do something like

$("select.country").change(function () {
var country = $(this),
country_id = country.attr("id"),
state = country.next("select.state");
});

state isn't the DOM element, it's the jQuery object, so you'd have to go
alert(state.attr("id"));

Hope this helps.

Also, I agree with Dave, this isn't the place for this kind of question.


On Wed, Dec 2, 2009 at 6:20 PM, Dave Methvin <[email protected]> wrote:

> The jQuery-en group is a better fit for this question. This group is
> for the discussion of the development of jQuery itself.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "jQuery Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<jquery-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/jquery-dev?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en.


Reply via email to