Created
October 26, 2012 15:24
-
-
Save marawan-nwh/3959406 to your computer and use it in GitHub Desktop.
get the last element on the dom by class and apply style to it
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 type="text/javascript"> | |
c=document.getElementsByClassName("comment-inner"); | |
last_element = c[c.length - 1]; | |
last_element.style.borderBottomWidth="0"; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it works :)
thanks for making this gist. i m sure it will help others too