I have the following function:
function viewdwable(dwableid) {
$("#modal-body2").html('Temporary loading message..');
$("#myModal").fadeIn(300);
$.ajax({
url: 'scripts/viewdwablehome.php',
data: { "currentNumber": dwableid, "usersid": usersid },
type: 'post',
dataType: "json",
success: function(data) {
$('#modal-body2').html(data['cntent12']);
}
});
}
This activates when clicked:
<div class="postfeed2" onclick="javascript:return viewdwable(' . $id . ');">
<a href="javascript:void(0)" onclick="javascript:return like(' . strip_tags($id) . ');">Text linked here</a>
</div>
The problem is I have another onclick link within the div. When that onclick is clicked I don't want it to also fire the div onclick.