Note that there are some explanatory texts on larger screens.

plurals
  1. PORadio button checked
    text
    copied!<p>When submitting my form the radio buttons do not give "checked" when they are checked. The form works well otherwise but I can't get a value from the buttons. Any suggestions on the current code? </p> <pre><code>&lt;form action="" method="post" id="termCloudForm"&gt; &lt;nobr&gt; Slot: &lt;input type="text" name="Slot" size="6" &lt;% If Request.Form("Slot") &lt;&gt; "" Then Response.Write(" value=""" &amp; Request.Form("Slot") &amp; """") %&gt; /&gt; &lt;/nobr&gt; &lt;nobr&gt; Date: &lt;input type="text" name="Date" size="6" &lt;% If Request.Form("Date") &lt;&gt; "" Then Response.Write(" value=""" &amp; Request.Form("Date") &amp; """") %&gt; /&gt; &lt;/nobr&gt; &lt;nobr&gt; &lt;input type="radio" id="radio_button_1" name="radio_button" value="1" /&gt; rad1 &lt;/nobr&gt; &lt;nobr&gt; &lt;input type="radio" id="radio_button_2" name="radio_button" value="2" /&gt; rad2 &lt;/nobr&gt; &lt;input type="submit" name="action" value="Submit" /&gt; &lt;/form&gt; </code></pre> <p>and the javascript part where I retrieve it has been simplified considerably to just check if it has been coming through. I think forcing it into javascript for the termcloud is where I'm getting errors, but I'm not sure where.</p> <pre><code>function initTermCloud() { var myForm = document.getElementById("termCloudForm"); var slot = myForm.elements["Slot"].value; var date = myForm.elements["Date"].value; var url = encodeURI('http://TermCloudJSON2Local.asp?Slot=' + slot + '&amp;Date=' + date); alert(myForm.elements["radio_button_1"].checked == true); var query = new google.visualization.Query(url); query.setTimeout(20); query.send(queryResponse); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload