Bug Tracker

Opened 15 years ago

Closed 15 years ago

#2986 closed bug (invalid)

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:
Blocked by: Blocking:

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 (2)

comment:1 Changed 15 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 15 years ago by flesler

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.