Forums

Radio Box + non english/numbers values

weissmag 16 Feb, 2012
Hi,

It seems that the for value of the label and and the id of the input are generated by concatenation of the values to the field name, correct me if I'm wrong.

when the values are non English and non numbers it just ignores it and all get the same name which causes all labels to point to the first radio.
here is an example:

<input id="has_medical_" class="" type="radio" value="כן" title="" name="has_medical">
<label for="has_medical_">כן</label>
<input id="has_medical_" class="" type="radio" value="לא" title="" name="has_medical">
<label for="has_medical_">לא</label>

I suggest that instead of ignoring the values just replace it with the index of the radio

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