[SOLVED] Using 'this' and other variables within Selector
Hey guys, I have found many pages and posts helping me learn all (there are so many!!!) the ways that items can be selected using jQuery's selectors. My problem is that I can't get some variable calls to work, such as using the 'this' variable, here is my code:
-
$('.itemparent').live('mouseover',function(){
$(this + ' > .itemchild').addClass('red')
});
So the problem with this is, I'm trying to add control to child items to the root item, but cannot seem to figure out the syntax.
I know how to use other variables and such in the selector, but I'm missing the mark with this one.
Any help is much appreciated.
