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; } Quote Link to comment https://forums.phpfreaks.com/topic/234980-remove-sibling/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.