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!
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.
Thanks!
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
4 matches
Mail list logo