I want to stop the parent event to fire up when I click the child link. here it is my code:
$('.list_row_inputtype').on('click',function(event) {
$(this).find('a.link_to_fire').click();
event.stopPropagation();
return false;
});
<div class="list_row_input_type unread">
<a href="#" onclick="toogleRead(); return false;" class="toogleRead"></a>
<a href="{corePath}/mails" class="link_to_fire">{emailLink}</a>
<div class="description"></div>
</div>
When I click on .toogleRead
it fire the function, but change to the {corePath}/mails
page too. I want to prevent it to change the page.