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!
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.})
Erik Beeson wrote on 5/9/2007 2:39 AM:
Or maybe this was just a trivial example to illustrate an
inconsistency, in which case, ignore me.
No, that helped quite a bit to understand how to best utilize jQuery. Thank
you for the suggestions.
Either way, file a bug report
for it so it doesn'
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 yoursel
5 matches
Mail list logo