Forums

Radio Button Validation

khenn 22 Jan, 2010
Using Firefox browser, Joomla 1.5.15 and Chronoforms 3.1 RC5.5
Can anyone take a look at this code and tell me why these radio buttons will not highlight when the validation is done on my page?

<div class="form_item">
  <div style="position: absolute; left: 240px; top: 150px;" class="form_element cf_radiobutton">
    <label class="cf_label" style="font-weight:bold;"><font color="#ff0000">*</font> Gender</label>
    <div style="position: absolute; left: 0px; top: 20px;" class="float_left">
      <input type="radio" name="gender" id="gender00" title="Gender is a required field." value="M"<?php echo ($gender == "M" ? " checked" : "")?>/>Male
      <input type="radio" name="gender" id="gender01" class="validate-one-required" title="Gender is a required field." value="F"<?php echo ($gender == "F" ? " checked" : "")?>/>Female
    </div>
  </div>
  <div class="cfclear"> </div>
</div>


Thanks,
Kris
GreyHead 23 Jan, 2010
Hi Kris,

It works OK here - I copied and pasted into a new form and removed the absolute position styles.

Bob
This topic is locked and no more replies can be posted.