Skip to content

Instantly share code, notes, and snippets.

@marawan-nwh
Created October 26, 2012 15:24
Show Gist options
  • Save marawan-nwh/3959406 to your computer and use it in GitHub Desktop.
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
<script type="text/javascript">
c=document.getElementsByClassName("comment-inner");
last_element = c[c.length - 1];
last_element.style.borderBottomWidth="0";
</script>
@ashu2121
Copy link

it works :)

thanks for making this gist. i m sure it will help others too

@bona-ws
Copy link

bona-ws commented Aug 26, 2019

Great job bro.. Its really help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment