a1exlism
12/21/2017 - 3:25 AM

jquery_delete

  1. $(ele).remove(); removes all the child element
  2. $(ele).empty(); remove the element itself, as well as everything inside it.
  3. $(ele).detach(); same as .remove(),but This method is useful
    when removed elements are to be reinserted into the DOM at a later time.