---
title: "Comment by Syarif on \"Separate your Javascript Access from CSS Selectors\" | Hashnode"
description: "Very interesting topic, But don&#39;t you think that just by adding another class name only for JavaScript selector, give you the same approach?, thanks."
url: "https://hashnode.com/posts/separate-your-javascript-access-from-css-selectors/601cce7d1054fa16dadd6db3/comment/601d0104072bc516ff6f366f"
---

[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)

[Syarif](https://hashnode.com/@sy4rif)

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

Very interesting topic, But don't you think that just by adding another class name only for JavaScript selector, give you the same approach?, thanks.

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

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

Yes Syarif, you're absolutely correct but IMO a class should be used for styling elements, but again these are just personal preferences. Thanks for reading it 💖
