I need help with the following code badly. This is able to display numerical values for the <label> but I need it to display text. For example
<input id="r1" onclick="check(two or more);" name="r1" type="radio" value="two" /> Two
I own two or more chickens.
Here is the code that will only display the numbers only.
<script type="text/javascript">// <![CDATA[
function check(x) { document.getElementById('Radio1').innerHTML = x; }
// ]]></script>
<form> <input id="r1" onclick="check(1);" name="r1" type="radio" value="one" /> One
<input id="r1" onclick="check(2);" name="r1" type="radio" value="two" /> Two
<input id="r1" onclick="check(3);" name="r1" type="radio" value="three" /> Three
<input id="r1" onclick="check(4);" name="r1" type="radio" value="four" /> Four
</form>I own <label id="Radio1" for="r1">blank</label> chickens.
Any help would be greatly appriciated