Wolfshade helped me earlier but I did not explain everything correctly (my fault...)
The following code will output numerical values only for the <label>. I need it to display text with multiple characters. For example:
I own two exceptional chickens...I own four or more chickens...etc
Again the code works perfectly but only for numbers.
Any ideas?Code:<script type="text/javascript">// <![CDATA[ function check(x) { document.getElementById('Radio1').innerHTML = x; } // ]]></script> <form> <input id="r1" onclick="check(one big);" name="r1" type="radio" value="one" /> One <input id="r1" onclick="check(two exceptional);" name="r1" type="radio" value="two" /> Two <input id="r1" onclick="check(three terrific);" name="r1" type="radio" value="three" /> Three <input id="r1" onclick="check(four or more);" name="r1" type="radio" value="four" /> Four </form> I own <label id="Radio1" for="r1">blank</label> chickens.


Reply With Quote

Bookmarks