Element.empty(element) return true if the element’s inner HTML contains nothing but whitespace.
element can be any DOM Element object or an ID.
script.aculo.us V1.5_rc5
prototype V1.4.0_rc3
Element.empty( element );
// or, from 1.5 onwards:
$(element).empty();
If you wish to empty a node, pass an empty string to Element.update:
Element.update( 'element', '' );
// or, from 1.5 onwards:
$(element).update('');