Bug Tracker

Modify

Ticket #2986 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

Issues with a parents() for <a> inside a table.

Reported by: oliver.andrich Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

Given a construct like the following parents does not do what I expect it do. May be I am just misunderstanding something.

<table class="datatable">
<tr class="dt-row">
<td><a href="javascript:void(0);" class="dt-action-remove">Click Me!</a></td>
</tr>
</table>

Now I add an click handler to the a.dt-action-remove and expect, the parents call to return the table, but it somehow stops at the tr.

$('.dt-action-remove').click(function(){
console.log($(this).parents('table'));
});

Change History

comment:1 Changed 5 years ago by oliver.andri

can you please close this ticket, cause the bug was on my side and I was blind. sorry for bothering you.

comment:2 Changed 5 years ago by flesler

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

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.