[jQuery] Re: attr(style: ) vs. css

2008-07-20 Thread Danny
Also attr('style', 'prop:val') replaces the entire inline style. css() just replaces that property. Danny On Jul 19, 12:37 pm, Geir [EMAIL PROTECTED] wrote: Thanks!

[jQuery] Re: attr(style: ) vs. css

2008-07-19 Thread Ariel Flesler
Yes, (2) is cleaner than (1) IMO. (3) isn't synchronous and requires additional proccessing (bad). -- Ariel Flesler http://flesler.blogspot.com/ On 19 jul, 05:54, Geir [EMAIL PROTECTED] wrote: Hi all! What's the difference between: 1. attr(style: prop./val.) 2. css({prop./val.}) and 3.

[jQuery] Re: attr(style: ) vs. css

2008-07-19 Thread Geir
Thanks!

[jQuery] Re: attr(style vs css(

2007-05-09 Thread Erik Beeson
Not sure about expected behavior, but the CSS version certainly seems more correct to me. It could be shortened to: $(.pics).css({borderStyle:solid, borderWidth:1px, borderColor:white}); Or really, in that specific case: $(.pics).css(border, 1px solid white); If you find yourself adding (and