Hi all,
I have a field in one of my channels that is a checkbox field, that has several options.
I am looking for how I can output this list into a list where the individual li items have different classes.
Here is an example of the HTML I am looking to achieve…
<ul>
<li class="option1">
<h4>Option 1</h4>
<p> Description of Option 1<br />
<br />
</li><br />
<br />
<li class="option2"><br />
<br />
</p><h4>Option 2</h4>
<p> Description of Option 2<br />
<br />
</li><br />
<br />
<li class="option3"><br />
<br />
</p><h4>Option 3</h4>
<p> Description of Option 3<br />
<br />
</li><br />
<br />
<li class="option4"><br />
<br />
</p><h4>Option 4</h4>
<p> Description of Option 4<br />
<br />
</li><br />
<br />
<li class="option5"><br />
<br />
</p><h4>Option 5</h4>
<p> Description of Option 5<br />
<br />
</li><br />
<br />
</ul>In this example, each option has a different class, as each class shows a little icon for that specific option.
This make sense? Any thought appreciated!