jQuery remove()The jQuery remove() method is used to remove the selected elements out of the DOM. It removes the selected element itself, as well as everything inside it (including all texts and child nodes). This method also removes the data and the events of the selected elements. If you want to remove elements without removing data and events, you should use the detach() method. If you want to remove only data and events, use the empty() method.Syntax: Parameters of jQuery remove() method:
Example of jQuery remove() methodTest it NowjQuery remove() example 2Test it Now
Next TopicjQuery empty()
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week