[html-formfu] Attributes in Checkboxgroup
Ascii King
tech at swattermatter.com
Mon Feb 23 17:24:18 GMT 2009
I have created a Checkboxgroup, but I cannot figure out how to place a
class in the SPAN tag that surrounds each option. The tags breakdown
like this:
<div>
<span>
<span class="HowDoIGetHERE?">
<input>
<label>
</span>
</span>
</div>
I want to know where do I specify the attribute to get the class into
the place where it says class="HowDoIGetHERE?" in the example above? I
know it can be done. I have followed the code in Googlecode and figured
out how to get class tags into everywhere else except that one.
Below is the code I am using and the results. I want to get into the
empty span tag.
- type: Checkboxgroup
name: Meals
container_tag: div
container_attributes:
class: outerdiv
id: Meals_id
attributes:
class: outerspan
options:
- value: 1
label: Breakfast
attributes:
class: input-class
label_attributes:
class: label-class
- value: 1
label: Lunch
attributes:
class: input-class
label_attributes:
class: label-class
<div class="outerdiv checkboxgroup" id="Meals_id">
<span class="outerspan">
<span>
<input type="checkbox" value="1" class="input-class" />
<label class="label-class" >Breakfast</label>
</span>
<span>
<input type="checkbox" value="1" class="input-class" />
<label class="label-class" >Lunch</label>
</span>
</span>
</div>
More information about the HTML-FormFu
mailing list