---
title: "Comment by Favourite Jome on \"Separate your Javascript Access from CSS Selectors\" | Hashnode"
description: "Thanks for sharing, I recently ran into an issue where I had to change my class name in both my HTMl and JS file. Now I&#39;ll use the data- attribute instead."
url: "https://hashnode.com/posts/separate-your-javascript-access-from-css-selectors/601cce7d1054fa16dadd6db3/comment/601d01311054fa16dadd712a"
---

[Discussion](https://hashnode.com/posts/separate-your-javascript-access-from-css-selectors/601cce7d1054fa16dadd6db3)

Comment [Separate your Javascript Access from CSS Selectors](https://hashnode.com/posts/separate-your-javascript-access-from-css-selectors/601cce7d1054fa16dadd6db3)

[Favourite Jome](https://hashnode.com/@Favourite)

[Feb 5, 2021](https://hashnode.com/posts/separate-your-javascript-access-from-css-selectors/601cce7d1054fa16dadd6db3/comment/601d01311054fa16dadd712a)

Thanks for sharing, I recently ran into an issue where I had to change my class name in both my HTMl and JS file. Now I'll use the `data-` attribute instead.

Also I like the way you write 😊, easily to understand 👍

[Ayush Saini](https://hashnode.com/@AyushCodes)

[Feb 5, 2021](https://hashnode.com/posts/separate-your-javascript-access-from-css-selectors/601cce7d1054fa16dadd6db3/comment/601d01311054fa16dadd712a#reply-601d6cbf1054fa16dadd7ac5)

Thanks, Jome for your kind words 🙏
