detach

English [dɪˈtætʃ] US [dɪˈtætʃ]

vt. Dispatch; separate, take apart; assign; make transcendent

jquery detach() method syntax

Function:The detach() method removes the selected elements, including all text and child nodes. This method retains the matching elements in the jQuery object so that they can be used again in the future. detach() will retain all bound events and attached data, which is different from remove().

Syntax:$(selector).detach()

jquery detach() method example

    

This is a paragraph.

Run instance »

Click the "Run instance" button to view the online instance