title: Get Selected Radio Button WITHOUT a Submit button
body: <p>I'm creating radio buttons and I'd like to be able to set the contents of <code>results</code> to the selected button. WITHOUT a submit button.</p>
  
  <pre><code>document.getElementById("results").innerHTML = NONE or A or B
  </code></pre>
  
  <p>I see a lot of posts on how to do this with a SUBMIT button but I want this to be automatically detected and have struggled to find a relating post. Any help appreciated!</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;div class="btn-group" data-toggle="buttons"&gt;
    &lt;label id='RADIO' class="btn btn-primary"&gt;
      &lt;input type="radio" name="test" id="NONE" autocomplete="off"&gt;NONE
    &lt;/label&gt;
    &lt;label class="btn btn-primary"&gt;
      &lt;input type="radio" name="test" id="A" autocomplete="off"&gt;A
    &lt;/label&gt;
    &lt;label class="btn btn-primary"&gt;
      &lt;input type="radio" name="test" id="B" autocomplete="off"&gt;B
    &lt;/label&gt;
  &lt;/div&gt;
  
  &lt;div id="results"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>