parameter function removeClass jquery code example
Example 1: jquery remove multiple class
$("p").removeClass("blue under");
Example 2: js remove class
const removeClass = (element, name) => {
const pattern = new RegExp('(?:^|\\s)'+ name + '(?:\\s|$)', 'g');
element.className = element.className.replace(pattern, "");
};