Skip to main content

Bug Tracker

Side navigation

#2986 closed bug (invalid)

Opened June 05, 2008 09:02AM UTC

Closed June 06, 2008 01:09AM UTC

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'));
});
Attachments (0)
Change History (2)

Changed June 05, 2008 09:23AM UTC by oliver.andri comment:1

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

Changed June 06, 2008 01:09AM UTC by flesler comment:2

resolution: → invalid
status: newclosed