clonefish logo

removeElement() method

$removed = $clonefish->removeElement( 'elementname' );
if ( $removed ) 
  echo 'element removed';
else
  echo 'element not found';

Removes an element from the form object. Returns false if the element cannot be removed (not found), returns true if the element was successfully removed.