On 4/6/07, Smith, Allex [EMAIL PROTECTED] wrote:
div id=mytestTest/div
$('#mytest').attr({style:width:200px;});
returns
div id=mytest style=width: 200px;Test/div in FF2
DIV id=mytestTest/DIV in IE6
I must be going mad.
Any suggestions as to where I might be going wrong?
or if you
I thought it was
$('#mytest').css({width:200px});
to set a style attribute?
--
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
---
The Past is a Memory
The Future a Dream
On 4/6/07, Steve Blades [EMAIL PROTECTED] wrote:
I thought it was
$('#mytest').css({width:200px});
to set a style attribute?
The curly braces depend on if you want to set an array or a single one.
Check in www.jquery.com/api under CSS.
Its got a bunch of good examples.
Glen
Are you talking about viewing source in IE vs FF? Because if you perform an
action with jQuery, then view source in IE, you'll NEVER see the changes in
the code. However, using the View Generated Source option in FF's
developer toolbar allows you to see changes made using javascript.
Or are you
, 2007 12:07 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: I'm going nutz...
On 4/6/07, Smith, Allex [EMAIL PROTECTED]
wrote:
div id=mytestTest/div
(English)
Subject: [jQuery] Re: I'm going nutz...
No, IE doesn't treat styles as simple text, the way FF does (just like
$('style h1 {color: black}/style') works in FF but not in IE. The
style object is read-only and you can only set its members. You should
use $(...).css(...)
Danny Wachsstock
6 matches
Mail list logo