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

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.

Availability

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

Syntax


  Element.empty( element );
// or, from 1.5 onwards:
  $(element).empty();

Note

If you wish to empty a node, pass an empty string to Element.update:


  Element.update( 'element', '' );
// or, from 1.5 onwards:
  $(element).update('');