How can I remove the sibling of $this.parentNode?

Code JavaScript:
input1[i].onclick = function() 
{
	var $this = this;
 
	ajax.get('/assets/ajax/partner_accept.php?uid=' + this.name, function(responce)
	{
		$this.parentNode.parentNode.style.display = 'none';
	});
 
	return false;
}