>> If the example in the API reference for .css used a camelCase 
>> attribute I think it would be clear. How do we edit that?

> I don't see any use of camelcase for CSS keys here:
> http://jquery.com/api/

I don't see it either, which is why I proposed using a camelCase example to
make it clear that was the way to handle css properties that have a dash in
them. In essence, change the .css example from this:

$("p").css("color");
<p style="color:red;">Test Paragraph.</p>
red

To this:

$("p").css("fontWeight");
<p style="font-weight:bold;">Test Paragraph.</p>
bold


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to