Toggle class name from div tag by clicking on button using JavaScript.
toggle class name without using toggle option in javascript .
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.toggle("mystyle");
}
we will be using other method to make this(toggle class)
maybe this code will be useful for you in your codding
© Manajmnt code
Comments
Post a Comment
message