JSFiddle - React, Tailwind, and code Playground
by felixsigl
HTML
<div id="feature" rel="urlnumberone">
some text
<a href="javascript:topicchange(this);" class="insideLink">Link</a>
</div>
CSS
body {
font-family: "Inconsolata","Monaco","Consolas","Andale Mono","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
font-size:12px;
line-height:15px;
}
.div {
display:none;
}
JavaScript
$(document).ready(function() {
$('#feature').click(function() {
alert("div clicked");
//window.location = $(this).attr('rel');
});
$('.insideLink').click(function(event) {
event.stopImmediatePropagation();
alert("a clicked");
});
});