Hi all,
I'm applying a CSS tag to my form fields, however they don't seem to apply to form elements that are being validated.
The style is applied correctly if I turn validation off for this field (both mootools and prototype).
Any ideas? I suspect that the validation applies its own class to the form element, but am speculating at this point.
Many thanks!
Trev Burchett
I'm applying a CSS tag to my form fields, however they don't seem to apply to form elements that are being validated.
<td width="30%">Name</td>
<td width="70%"><input name="name" type="text" class="inputbox" id="name" size="40" /></td>
The style is applied correctly if I turn validation off for this field (both mootools and prototype).
Any ideas? I suspect that the validation applies its own class to the form element, but am speculating at this point.
Many thanks!
Trev Burchett
Hi Trev,
The validation code that ChronoForms uses relies on writing class names into the <input> tags. If you add your own classes and validation adds another most browsers get indigestion.
To style input tags wrap the inputs in spans or divs and add classes to those and leave classes out of the for tags themselves.
Bob
PS input, select, etc. the same applies.
The validation code that ChronoForms uses relies on writing class names into the <input> tags. If you add your own classes and validation adds another most browsers get indigestion.
To style input tags wrap the inputs in spans or divs and add classes to those and leave classes out of the for tags themselves.
Bob
PS input, select, etc. the same applies.
This topic is locked and no more replies can be posted.