1document.getElementById('myButton').onclick = function() {
2 this.classList.toggle('active');
3}
1<button class="" id="changeicon">
2 <i id="slideshow" class="fas fa-hamburger"></i>
3</button>
4
5$("#changeicon").click(function() {
6 $("#slideshow").toggleClass("fa-times");
7 });