Hi, Elements are not automatically extended with Prototype features in IE[1], you have to manually extend them or get them from any of the Prototype API functions, which will extend them for you.
In your case, either use `Element#up`[2]: alert($('test').up().removeClassName('foobar')) or pass `parentNode` through `$` to extend it (which seems more awkward to me): alert($($('test').parentNode).removeClassName('foobar')) [1] http://prototypejs.org/learn/extensions [2] http://api.prototypejs.org/dom/element.html#up-class_method HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Mar 22, 7:17 am, jan <janhous...@gmail.com> wrote: > Hiya, I have the following code to remove class name in the > parentnode, but it only works in FF, IE however gives "Object doesn't > support this property or method". Any idea? > > <script src="prototype.js"></script> > <div class="foobar"><span id="test" > onClick="alert($ > ('test').parentNode.removeClassName('foobar'))">testtest</span></div> -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.