Forum

Thread tagged as: Question

Div class selection from checkboxes

How do you use perch IF condition assigning different class in a div, which can be selected from back-end editing. and add a dropdown list of classe to choose from in back-end

<div class="<perch:content id="text" type="text" label="Text" required="true"  /> "></div>

Classes to choose from for ex; Red, green or white,

Edward Johansen

Edward Johansen 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

<div class="<perch:content id="class" type="select" label="Class" options="red, green, white" />"></div>