title: Get input value from a radio button
body: <p>I'm trying to show the value in an input field when the radio-button is  checked/clicked. But it does not work when I include <code>bootstrap.min.js</code><br>
  <a href="https://jsfiddle.net/uh3co0zj/" rel="nofollow noreferrer"><strong>JSFiddle</strong></a></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-js lang-js prettyprint-override"><code>$('input:radio').click(function() {
        document.getElementById("whatever").innerHTML = $(this).val();
      });</code></pre>
  <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;div class="container"&gt;
        &lt;div class="btn-group btn-group-toggle d-flex" data-toggle="buttons"&gt;
          &lt;label class="btn btn-primary w-100 active"&gt;
                      &lt;input type="radio" name="options" value="5" id="option1" autocomplete="off"&gt; 5
                    &lt;/label&gt;
          &lt;label class="btn btn-primary w-100"&gt;
                      &lt;input type="radio" name="options" value="10" id="option2" autocomplete="off"&gt; 10
                    &lt;/label&gt;
          &lt;label class="btn btn-primary w-100"&gt;
                      &lt;input type="radio" name="options" value="15" id="option3" autocomplete="off"&gt; 15
                    &lt;/label&gt;
          &lt;label class="btn btn-primary w-100"&gt;
                      &lt;input type="radio" name="options" value="20"id="option4" autocomplete="off"&gt; 20
                    &lt;/label&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="container"&gt;
        &lt;div class="form-group"&gt;
          &lt;input id="whatever" class="form-control"&gt;
        &lt;/div&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>If the user clicks on say "15", then the value shows 15 in the input field.</p>
  
  <p>PS: The code works when I disable the <code>bootstrap.min.js</code> and add <code>&lt;div id="whatever"&gt;&lt;/div&gt;</code>.</p>