I am using drupal form radios, I can use Prefix and Suffix to assign IDs to group, how can I assign different IDs to each radio button inside the radios element? Thanks
You need to use theme_radios() hook in your template.php file, if what you get is insufficient.
$variables: An associative array containing:
- element: An associative array containing the properties of the element. Properties used: #title, #value, #options, #description, #required, #attributes, #children.
A themed HTML string representing the radio button set.
To interfere with single radio element, see theme_radio(), of course.
The Display Suite module might be what you're looking for:
Display Suite lets you create your own id's and classes, and then assign them to your form fields, either keeping Drupal's default and adding your new ones, or it can completely replace the existing id's and classes with your new ones. Here's a screen shot of a radio button field I have on a form I recently created: http://www.territorialnetworks.com/design-suite.png
Design Suite also lets you control the layout of your form with different column configurations and orientations.