Send the button itself as a variable to your function.
<a onclick="get_accept('<?php echo $data['id'];?>', this);" class="edit" title="Accept" href="#">Accept</a>
Then disable or hide it in your javascript.
function get_accept(data, sender)
{
sender.disabled = true;
sender.styles.display = "hidden";
}