---
title: "Comment by Ronald Hollak on \"Card region item's selection\" | Hashnode"
description: "Hi, Great article. Tip: considder using jquery&#39;s .toggleClass to add/remove selected Class."
url: "https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fc7aa90cfd6de8c7d7694d"
---

[Discussion](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47)

Comment [Card region item's selection](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47)

[Ronald Hollak](https://hashnode.com/@rhollak)

[Aug 17, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fc7aa90cfd6de8c7d7694d)

Hi, Great article. Tip: considder using jquery's .toggleClass to add/remove selected Class.

[Louis Moreaux](https://hashnode.com/@lmoreaux)

[Aug 17, 2022](https://hashnode.com/posts/card-region-items-selection/62fb891e009e64d92e6d7e47/comment/62fc7aa90cfd6de8c7d7694d#reply-62fc80081ebeafdc3d32bc31)

Thanks for sharing, `toogleClass` will do the job in a cleaner way. But in a real application, you would want to store the id to process it, so you will have to check if the class is present or not anyway.
