@Rick
elParent and el are names (id's).
Tried your solution but only one style get copied.
Accordingly to quirksmode, #setAttribute implementation in IE 7 and
lower is incomplete (http://www.quirksmode.org/dom/
w3c_core.html#attributes). Therefore I prefer base my application on a
framework ;-)
@
On Apr 30, 10:13 am, bazikch wrote:
> Hello,
>
> I'm trying to do the following:
> $(el).writeAttribute('style', $(elParent).readAttribute('style'));
It would be helpful if you explained what it is exactly that are you
trying to accomplish.
The line above actually ends up jumping through dozens
$(elParent).readAttribute('style')
is elParent a var of an extended element? my first guess would be that it is..
if it is.. try:
elParent.readAttribute('style')
if its not... try:
$('elParent').readAttribute('style')
same with:
el.writeAttribute(
so... put together:
el.writeAttribu