Answers for "how to remove inner html using jquery"

3

how to remove html element in jquery

$("button").click(function(){
  $("p").remove();
});
Posted by: Guest on November-24-2020
2

jquery clear text in div

// removes only text, no changes to children
$('#YourDivId').contents().filter((_, el) => el.nodeType === 3).remove();
Posted by: Guest on September-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language