title: How to get value from radio button bootstrap
body: <p>I want get value from radio button that made by bootstrap with jquery</p>
  
  <p>I try with this but not work</p>
  
  <pre><code>    $('#search-type input').on('change', function() {
     alert($('input[name=\'options\']:checked', '#search-type').val());
  });
  </code></pre>
  
  <pre><code>        &lt;div class="btn-group btn-group-toggle" data-toggle="buttons" id="search-type"&gt;
              &lt;label for="Search"&gt;Search for:&amp;nbsp;&lt;/label&gt;
            &lt;label class="btn btn-secondary active"&gt;
              &lt;input type="radio" name="options" id="option1" autocomplete="off" value="Photo" checked&gt; Photo
            &lt;/label&gt;
            &lt;label class="btn btn-secondary"&gt;
              &lt;input type="radio" name="options" id="option2" autocomplete="off" value="Video"&gt; Video
            &lt;/label&gt;
          &lt;/div&gt;
  </code></pre>