radio button form to print text -


help. i'm not programmer, historian. i'm trying create radio button form when click on buttons of form, in different sub-groups, hit submit, text box text of radio button selections.

here's have far. need java code allows printing. people can figure out i'm trying , help.

<html> <head>     <title>paper comments</title>      <script language = "javascript">       </script> </head>   <body>      <form name="frmone" action="" method="post">      <p>  <input type="radio" name="thesis" value="thesis4"> thesis explicit ,     clear<br> <input type="radio" name="thesis" value="thesis3"> thesis clear<br> <input type="radio" name="thesis" value="thesis2">thesis unclear decipherable<br> <input type="radio" name="thesis" value="thesis1"> thesis vague<br> <input type="radio" name="thesis" value="thesis0"> no thesis<br> <input type="radio" name="thesis" value="thesisnone"> answer question here.  answer thesis.<br>  </p>     <p> <input type="radio" name="intro" value=“intro4”> introduction provides direction<br> <input type="radio" name="intro" value=“intro3”> introduction provides direction <br> <input type="radio" name="intro" value="intro2">introduction provides little direction<br> <input type="radio" name=“intro” value="intro1">introduction provides no direction<br></p>       <input type="button" value="  submit  " onclick="validate()">     </form>  </body> </html> 

this should

<html> <head>     <title>paper comments</title>      <script language = "javascript">  function validate(){ var radios = document.getelementsbyname('thesis'); var tarea=document.getelementbyid('ta'); (var = 0, length = radios.length; < length; i++) {     if (radios[i].checked) {        tarea.innerhtml=radios[i].value+"\n";         break;     } } radios = document.getelementsbyname('intro'); (var = 0, length = radios.length; < length; i++) {     if (radios[i].checked) {         tarea.innerhtml+=radios[i].value;         break;     } } }     </script> </head>   <body>      <form name="frmone">      <p>  <input type="radio" name="thesis" value="thesis explicit , clear"> thesis explicit ,     clear<br> <input type="radio" name="thesis" value="thesis clear"> thesis clear<br> <input type="radio" name="thesis" value="thesis unclear decipherable">thesis unclear decipherable<br> <input type="radio" name="thesis" value="thesis vague"> thesis vague<br> <input type="radio" name="thesis" value="no thesis"> no thesis<br> <input type="radio" name="thesis" value="answer question here.  answer thesis."> answer question here.  answer thesis.<br>  </p>     <p> <input type="radio" name="intro" value="introduction provides direction"> introduction provides direction<br> <input type="radio" name="intro" value="introduction provides direction"> introduction provides direction <br> <input type="radio" name="intro" value="introduction provides little direction">introduction provides little direction<br> <input type="radio" name="intro" value="introduction provides no direction">introduction provides no direction<br></p>       <input type="button" value="  submit  " onclick="validate()">      </form>     selection: <textarea id="ta"></textarea> </body> </html> 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -