You do not need to have JS in the link itself, since you are using JS.
HTML
<ul>
<li class="delete"><a onclick="deletePerson(12);" href="">Delete</a></li>
</ul>
JQuery
$('.delete').find('a').bind('click', function() {
$(this).parent().remove();
return false;
});
source
share