Created
October 28, 2019 23:28
-
-
Save grampelberg/ec6fc3e518763e719fb190b03a3467a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function expandSibling(el) { | |
var chevron = el.querySelector("td:first-child > i").classList; | |
chevron.toggle("fa-angle-down"); | |
chevron.toggle("fa-angle-right"); | |
el.nextElementSibling.classList.toggle("hide"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment