function - Radio Button choice to prefill specific text to Textarea to then be parsed to server -
the long , short of need able have html consists of 5 or more radiobuttons. based on radiobutton choice, freeform textarea filled text of choosing later parsed , sent server.
i able create radiobuttons, text area, , have parse code. i'm having trouble prefilling text textarea based on radiobutton choice.
help?
use code in body tag of document:
<textarea id="txt"></textarea><br /> <script> txt=document.getelementbyid("txt"); </script> <input type="radio" onclick="txt.value='value1'"> <input type="radio" onclick="txt.value='value2'"> <input type="radio" onclick="txt.value='value3'"> <input type="radio" onclick="txt.value='value4'"> <input type="radio" onclick="txt.value='value5'">
Comments
Post a Comment