On 19/01/07, Bruce MacKay <[EMAIL PROTECTED]> wrote:
>
>  Hi folks,
>
>  Not a new question to this list, I know, but I'm having difficulty in
> getting the ID of a parent.  From the examples on Nabble, I've tried
>
>  var ej = $("#sText").parent().attr("id");
>
>  and various renditions on the them, but the best I get reported is [object
> Object].  I'd appreciate a pointer to the solution.
>
>  Thanks,
>
>  Bruce

Perhaps it is a bug as that should work. You could always resort to
doing it the DOM way:

var ej = $("#sText")[0].parentNode.id;

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to