I have a simple faq accordion template that uses a checkbox as the toggle to reveal the answer to a question (code below)
- <input type="checkbox" id="faq-1">
- <label for="faq-1"><perch:content id="question" type="smarttext" label="Question" help="This will form the clickable question" required="true"/></label>
- <ul class="">
- <perch:content id="answer" type="textarea" label="Answer" markdown="true" editor="simplemde"/>
As you can see each checkbox input has an ID that matches its corresponding label.
My question is how can I set this template up as a repeater that creates new sequential ID's?
Any help would be appreciated otherwise it'll be the dreaded codeblock