[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 Geir
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.})

[jQuery] Re: attr("style" vs css(

2007-05-09 Thread Bil Corry
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'

[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 yoursel