jQuery selector: this.parent, is there such a thing?
Posted
by Kyle Sevenoaks
on Stack Overflow
See other posts from Stack Overflow
or by Kyle Sevenoaks
Published on 2010-06-02T11:28:45Z
Indexed on
2010/06/02
11:33 UTC
Read the original article
Hit count: 145
I have a lot of div boxes with nested div .title
s, with a button inside. Is there a way in jQuery to select the parent of the button?
Something like:
$("#button").click(function(){
$("this.parent").css({'border-bottom' : 'none'});
});
Or am I going to have to rename all of my title classes to unique classes?
© Stack Overflow or respective owner