jQuery 3: get sibling of a parent
Hello, all,
Trying to get the sibling of a parent, and keep getting a "not defined" message.
<span><button type="button" class="delBtn">DELETE</button></span>
<span>Results</span>
...
$('.delBtn').click(function(){
$.post("components/APP.cfc?method=deleteUser",{user_id: "{a users id}"}).done(function(data){
alert($(this).parent().siblings().length); // Always reports length of zero
});
});
I do not see where I am going wrong, here. Please help.
V/r,
^ _ ^
