Try the following:
jQuery(".class").click(function() {
jQuery('a',this).toggleClass("highlighted");
}
Cheers
==
On Thu, Feb 26, 2009 at 7:46 PM, Kenchu <[email protected]> wrote:
>
> Is there a way to do what I describe in topic?
>
> For example.
>
> jQuery(".class").click(function()
> {
> jQuery(this + "a").toggleClass("highlighted");
> });
>
> This doesnt work. What im trying to do is to select all the <a>
> elements within this. Is it possible to achive that somehow?
>
--
http://ngty77.blogspot.com