Useless answer and this is exactly what Im trying to do. Does anyone have a specific solution to the problem besides "read the manual"? Ive already read through the docs and they are poorly written in this area, and not enough to give a good understanding. Perhaps if I give a specific example someone can help? Here is setting up the form element:
$gender = $form->createElement('radio', 'gender');
$gender->setLabel('Gender')
->addMultiOption('Male', 'male')
->addMultiOption('Female', 'female')
->setAttrib('class','radio')
->setRequired(true);
will generate the following code:
<dt><label for="gender" class="radio required">Gender</label></dt>
<dd>
<label style="white-space: nowrap;"><input type="radio" name="gender" value="Male" class="radio">male</label><br /><label style="white-space: nowrap;"><input type="radio" name="gender" value="Female" class="radio">female</label></dd>
How can I remove the "<br/>" from the output code? I know there are multiple ways to do this but what is the easiest?
|