Modify ↓
Ticket #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: | ||
| 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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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