Utilizing the Twitter Bootstrap collapse feature to conceal a table row. The issue arises when there is a link within the text that triggers the collapse/expand behavior. Upon clicking the link, the collapsed text first expands and then the link is followed.
To resolve this problem, I am looking for a way to prevent the collapse toggle from being triggered when clicking on the link. Below is an example code snippet showcasing the problem (view live jsfiddle example here):
<table class="table">
<tr data-toggle="collapse" data-target="#collapseRow1" style="cursor: pointer;">
<td>Click me to show more!</td>
<td><a href="http://getbootstrap.com/css/">but don't expand after clicking this link</a></td>
</tr>
<tr class="collapse" id="collapseRow1">
<td>hidden content1</td>
<td />
</tr>
</table>