unemployment Posted April 28, 2011 Share Posted April 28, 2011 How can I remove the sibling of $this.parentNode? 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; } Link to comment https://forums.phpfreaks.com/topic/234980-remove-sibling/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.