eastvillage
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
</form>
<span id="ValueOfSomething"></span>
Description:
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:
http://www.dynamicdrive.com/dynamicindex1/combodescribe.htm
Thanks millions for any help.
...
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
</form>
<span id="ValueOfSomething"></span>
Description:
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:
http://www.dynamicdrive.com/dynamicindex1/combodescribe.htm
Thanks millions for any help.
...