Bug Tracker

Modify

Ticket #47 (closed bug: fixed)

Opened 8 years ago

Last modified 7 years ago

Problems with .parent()

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

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

comment:1 Changed 8 years ago by john

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

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.