[thelist] help with Opera 7 and attributes...

Peter-Paul Koch gassinaumasis at hotmail.com
Thu Dec 11 03:34:13 CST 2003



>I have this...
>
>     var el = document.getElementById('myelement');
>         el.getAttribute('myattribute');
>
>This is always return empty string and prints 'Warning' in the alert box.
>
>Please, enlighten me.
>
>How do I retrieve the values of custom FORM Elements in Opera?

Odd. This should work.

The one thing you cannot do in Opera, though, is using existing attributes 
on the wrong elements, like <tr rel="something">. Opera doesn't allow that. 
But as long as you define your own attributes it should work fine.

-------------------------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.quirksmode.org/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
------------------------------------------------------------------

_________________________________________________________________
MSN Search, for accurate results! http://search.msn.nl



More information about the thelist mailing list