Possible Duplicate:
Prevent execution of parent event handler
I'm using a nice plug-in (jQuery drop-down) to add a drop down to a table row:
An attribute is placed on a trigger object that contains the ID of a menu to display. In this case "data-dropdown" on a table row.
<tr data-dropdown="#dropdown-first">
<td><a href="http://www.boston.com">Basic</a></td>
<td>The basic plan</td>
</tr>
My issue is one of the TDs contains a link but the link will always trigger the drop down rather than launch a new page. This is a snippet of the plug-in code that calls the menu:
$(function () {
$('BODY').on('click.dropdown', '[data-dropdown]', showMenu);
$('HTML').on('click.dropdown', hideDropdowns);
});
Is there a way to modify the selector in the .on event to exclude a specific child tag such as my link ? Is there another suggested strategy? I'd like to keep the plug-in intact as possible so its highly re-usable.