title: bootstrap switch selected option alert not working
body: <p>I am using bootstrap 3 with bootstrap Switch for checkbixes and radio buttons. I am trying to alert selected value(when switched) but no alert. Here is my code: </p>
  
  <pre><code>$(document).ready(function () {
      $('#preAuth').on('switch-change', function (e, data) {
          alert(data.value);
      }); 
  });
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class ="form-group"&gt;
      &lt;label class="col-sm-3 control-label"&gt;Does payment profile exists ?&lt;/label&gt;                                        
      &lt;label class="checkbox-inline"&gt;                                         
          &lt;input type="checkbox" id="preAuth" name="preAuth" data-on="primary" data-off="info" data-on-label="YES" data-off-label="NO" &gt;
      &lt;/label&gt;
  &lt;/div&gt;  
  </code></pre>
  
  <p>Original documentation for <a href="http://www.bootstrap-switch.org/" rel="nofollow">Switch</a></p>
  
  <p>If you see Toggle State sample, if you click on "State!" button, it is showing alert but am not able to understand how tha tis displaying the alert. I cannot find code that is calling an alert when clicked on button.</p>