View Full Version : Select W/description - use radio buttons instead?

07-06-2006, 09:10 PM
I am currently using the "Select W/Description" script from DD and love it.

However, I am trying to convert it for use with a RADIO BUTTON form instead of the the SELECTs. I'm too much of a noob to know the DOM and figure this one out. :( Please help!!!

Example form:
<form name="showform" action="">
<input type="radio" name="r1" value="red">red
<input type="radio" name="r1" value="blue">blue

<span id="ValueOfSomething"></span>

Neither is selected at page load.
When I select one of them, a message in the SPAN should appear. The message can either be the value of the RADIO, but preferably come out of an array, similar to original SELECT W/ Description script.

I guess my main problem is that the SelectedIndex is used in the original script and I don't know how to convert this to usage with radio buttons:confused:


Thanks millions for any help.