Wycats,

I used that code from visualjQ as a template, and it didn't work. In IE, I
get a debug error saying that it expects ':'. I changed font-weight:... to
'font-weight':... and IE went straight over it, without modifying the
weight.

Klaus, Class would be a simple option. But now this has me thinking! :)



wycats wrote:
> 
> Take a look under CSS on the visual documentation at "css(prop)" -- it's
> exactly what you're looking for.
> 
> http://www.visualjquery.com
> 
> -- Yehuda
> 
> On 9/5/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hey all!
>>
>> I'm sorry if this has been discussed before (I did a search without any
>> results on the subject), but does jQuery have the ability to change the
>> font-weight with the css method (or a font-weight method)?
>>
>> I had a look in the API documentation and VisualjQuery, but neither show
>> anything for it.
>>
>> For instance, for something like this:
>> $("p").css({ color: "black", font-weight: "normal" });
>> or
>> $("p").css({ color: "red", font-weight: "bolder" });
>>
>> Here you can see the first is normal text, while the other is red and
>> bold(er) for a warning.
>>
>> Anyhow, just wondering if font-weight was inside jQuery at all?
>>
>> Cheers,
>>
>> Dan
>> --
>> View this message in context:
>> http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6151779
>> Sent from the JQuery forum at Nabble.com.
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
> 
> 
> 
> -- 
> Yehuda Katz
> Web Developer
> (ph)  718.877.1325
> (fax) 718.686.4288
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Font-weight-modifier-in-jQuery-tf2220759.html#a6152395
Sent from the JQuery forum at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to