Last active
April 24, 2018 06:25
-
-
Save tuttelikz/021b4bcdd3507a69a82e1092cd52a7e5 to your computer and use it in GitHub Desktop.
a way to choose specific li element
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
<script> | |
d3.select("li:nth-child(2n)").style("color", "red"); # second | |
d3.select("li:nth-child(even)").style("color", "red"); # even | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment