Collection list Items with separate classes

Hello, Everyone, I would like to give separate classes for my collection lists for analyse all the buttons for my website. Is it possible for me to create it or I have to use custom code for the result that I want ? Thank you so much. :slight_smile:

Hello @shermen, there’s no way to give unique classes for a cms using Webflow natively. There’re alternatives though depending on your use case. Iterating over elements with JS and giving each one a unique ID is one way, but it’s not advisable if the items get filtered or re-ordered. Another would be by assigning a hidden CMS field and give it unique values for each item, and target it instead with JS

@bavshehata So what you mean is that, there is no way to create unique classes using cms. But I can use Javascript to do it right ?

That’s exactly right, yes.