I have some code right now that executes when a link is clicked. The HTML is structured:
<a href='link1'>Stuff<span class='color-bar'></span></a>
<a href='link2'>Stuff<span class='color-bar'></span></a>
<a href='link3'>Stuff<span class='color-bar'></span></a>
With the jQuery like so:
$('a').liveQuery('click',function(event){
...
...
$( selector ).animate({bottom:10},'slow');
}
My question is how do I target the specific '.color-bar' using $this? Before I had each one assigned an id, but then realized it was overkill and figured I could do it using the $this element.
I tried $( $this > '.color-bar' )
but that didn't work. Am I just getting syntax wrong or approaching it incorrectly? Thanks!