Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change class by is in js by toggle

<button class="" id="changeicon">
	<i id="slideshow" class="fas fa-hamburger"></i>
</button>

$("#changeicon").click(function() {
			$("#slideshow").toggleClass("fa-times");
		});
 
PREVIOUS NEXT
Tagged: #change #class #js #toggle
ADD COMMENT
Topic
Name
7+1 =