Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#47 closed bug (fixed)

Problems with .parent()

Reported by: john Owned by:
Priority: major Milestone: 1.0
Component: core Version: 1.0
Keywords: Cc:
Blocked by: Blocking:

Description

I can find the parent:

$("#foo").parent();

I can find the ID of the current object:

$("#foo").get(0).id;

How do I find the ID of the parent? This doesn't work:

$("#foo").parent().get(0).id;

Change History (1)

comment:1 Changed 10 years ago by john

  • Resolution set to fixed
  • Status changed from new to closed

I think this has been resolved in SVN, as it works for me: http://john.jquery.com/jquery/test/parent.html

Note: See TracTickets for help on using tickets.