After a lot of reading, I'm very close to where I need to. I'm trying to use something like Demo 6 with the help toggle. In the question, I'm passing the ID of the radio button to a function and calling funcRadioCalc to get the value. Then, using that value, I can write the innerhtml to do what I need.
However, I still have a problem. When I alert out the value, I get two event and am unable to get a single value to return. For instance when I load the form and click on the first radio button, the alert says 'undefined' - click on OK and then is says '1' (which is correct). Click on radio two and the first alert says '1' and the second '2' and so on. I've tried checking the value and then alerting out some text so I could see it but with similar results.
Any idea how I can make this only a single event?
The code on the queston is: showOptions($(flyerOptions_FieldID))
and the function looks like:
function showOptions(obj) {
optionValue = funcRadioCalc(obj);
if(optionValue == '1') {
alert('One');
} else if(optionValue == '2') {
alert('Two');
}else if(optionValue == '3') {
alert('Three');
} else if(optionValue == '4') {
alert('Four');
} else if(optionValue == '5') {
alert('Five');
}
}