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>


_______________________________________________
HTML-FormFu mailing list
[email protected]
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to