I have
$('.loading-overlay').removeClass('hidden');
and I have to rewrite the code without jQuery. How can this be done?
I have
$('.loading-overlay').removeClass('hidden');
and I have to rewrite the code without jQuery. How can this be done?
Removing:
document.getElementById("yourElement").className = "";
Assigning new one:
document.getElementById("yourElement").className = "yourNewClass"
Though, this method removes all classes.
document.getElementById("elementId").className =
document.getElementById("elementId").className.replace(/\burClassName\b/,'');