I just tried a test on my own page:

$('a').css('opacity','.5');

And every A element on my page became partially transparent.  Do you have a
link to your page online?

JK

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aw
Sent: Tuesday, April 17, 2007 6:41 AM
To: jQuery (English)
Subject: [jQuery] I have to fire "each" and "$(this)" when doing something?


$('somediv.someclass').css("opacity",".5");
is not working and I have to use :
$('somediv.someclass').each(function(){$(this).css("opacity",".5")});
But sometimes I can just go ahead without having to use "each".
What's the matter, could anyone give me a hand?


Reply via email to