I don't know javascript very well...
I have a form with the name register_group and a radio button for pc_parade_float with yes/no options. I want to display a different comment depending on if they clicked yes or no in the radio button. The code I have is as follows:
<script type='text/javascript'>
if(document.register_group.pc_parade_float[0].checked==true)
{document.writeln('use PayPal to pay your $75.00 registration fee.')}
else
{document.writeln('use PayPal to pay your $50.00 registration fee.')}
</script>
Note that this code is outside the <form></form> if that matters.
If I change the value of the button it does not change the value of the output. What am I missing. Do I need an on-click event in the <input> of the buttons to trigger the change? If so what would it be?
Thanks/Hal