I think this is a job for jQuery. Maybe something like this:
var classes =
['normal','important','no_really','urgent','critical','game_over']
jQuery("input[name='myradio']").each(function(i){ jQuery(this).addClass
(classes[i]); });
On Sep 21, 1:47 am, Ankit Agarwal <[email protected]> wrote:
> Hi
> I am using radio buttons in my SQLFORM . For querying purposes , a
> user may choose any one out of x number of options . I would like to
> format each of the options ( I mean display differently as per their
> importance ) . How should I go about it ?
>
> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---