The HTML <input> element for checkboxes only displays the actual checkbox
-- if you want a label, you have to explicitly include that in the HTML
(typically via the <label> element).
Anthony
On Wednesday, June 12, 2013 12:12:12 PM UTC-4, alokjoshiofaarmax wrote:
>
> I am new to web2py but awed with its awesomeness.
>
> I tried out the following in the view :
>
> {{extend 'layout.html'}}
> <h1>Testing checkboxes</h1>
> {{for i,v in zip(range(3),['a','b','c']):}}
> {{=INPUT(_type='checkbox', _value=v, _name='cb' + str(i))}}
> {{pass}}
>
> The 3 checkboxes show up but not the 'a', 'b' or 'c'
> Am I doing something wrong?
>
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.