list all checkbox options and apply class to checked options

I've created a checkbox fieldtype to give the user options for product variants (for a shop). I need to display all the possible values of the checkbox, on the front end and give only the ones that are checked a class.

So let's say the product comes in red, yellow, blue, and green. All those options will show as within a an unordered list but the ones that are checked as out of stock will have a class of red and strike through.

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower