I wanted to know how to change the class of an html div in JavaScript
<div id="showmodal" class="modal fade" id="myModal">
I want to change the name class="modal fade" to "modal fade in" in javascript, thank you for the attention!
I wanted to know how to change the class of an html div in JavaScript
<div id="showmodal" class="modal fade" id="myModal">
I want to change the name class="modal fade" to "modal fade in" in javascript, thank you for the attention!
Select the element and change the attribute className
document.getElementById('showmodal').className = "modal fade";