On 4/6/07, Smith, Allex <[EMAIL PROTECTED]> wrote:


<div id="mytest">Test</div>
$('#mytest').attr({style:"width:200px;"});

returns
<div id="mytest" style="width: 200px;">Test</div> in FF2
<DIV id=mytest>Test</DIV> in IE6

I must be going mad.
Any suggestions as to where I might be going wrong?



Why not do
$("#mytest").css("width","200px");

Glen

Reply via email to