How to remove a specific class element from a string by js or jq

clipboard.png

how do js or jq remove specific class elements from a string

Mar.14,2021

append the string to a dom element such as < div id= "fliter-box" > < / div >
$("- sharpfliter-box") .append (str);
find the specific class to be deleted under the change element and delete:
$("- sharpfliter-box"). Find (".ql-cursor"). Remove ();
) then get all the characters in dom and return.
var str = $("- sharpfliter-box"). Text ();


< H1 > Native javascript implementation < / H1 >
// div
let div = document.createElement('div');
// 
div.classList.add('header');
// 
div.classList.remove('header');
Menu