If you use a class to give css to this particular tag, you can simply specify the class name as empty or another class that you want to use:
document.getElementById("tagid").className = "";
OR
document.getElementById("tagid").className = "class2";
And if you can use JQuery , then it is very simple to remove the parent class as follows:
<script>$("tagid").removeClass("oldclass");</script>
For more information on jQuery, click here .
source share