Sign in

.empty()

Clears the contents of the selected elements, but leaves the elements themselves.

Syntax

neon.empty()

Requirements

This method should be executed on a selection of elements. Please see the .select() method.

Return value

This method is chainable. It returns a copy of the Neon object on which it was called.

Description

This method allows you to remove all of the selected element's children, without removing the elements themselves.