Prototype This page is part of the Prototype JavaScript framework documentation.
Overview | (...)

Element.remove\ClassName removes class name (className) from element.

Availability

script.aculo.us V1.5_rc5
Prototype V1.4.0_rc3

Syntax


  Element.removeClassName(element, className);

Example


<a href="#" onclick="Element.removeClassName('mypara', 'wild'); return false;">
Please tame this wild paragraph!</a>

<p id="mypara" class="wild">This paragraph is wild!</p>

creates:

Please tame this wild paragraph!

This paragraph is wild!