Hi I wanted to create a form with a radio field say others and when this radio is checked the user must fill in a text field to indicate what is the others how do i implement a check for this? Thanks!
Forums
fill in text box with radio checked
Hi amaze,
Here is how:
#1- assign a field id to the "others" radio, say "id="others"
#2- assign a field id to the "others" text box, say id="others-text"
#3- add a "load js" action and add this code inside:
This should do it I hope.
Regards,
Max
Here is how:
#1- assign a field id to the "others" radio, say "id="others"
#2- assign a field id to the "others" text box, say id="others-text"
#3- add a "load js" action and add this code inside:
$('others').addEvent('change', function(){
$("others-text").addClass("validate['required']");
formCheck.register($('others-text'));
});
This should do it I hope.
Regards,
Max
This topic is locked and no more replies can be posted.