title: bootstrap switch getting value on change
body: <p>I am using bootstrap switch for setting value to NO when its OFF and Yes when its ON,</p>
  
  <p>in HTML,</p>
  
  <pre><code>&lt;input type="checkbox" id="limit" class="make-switch" data-on="success" data-on-color="success" data-off-color="danger" data-size="small"&gt;
  </code></pre>
  
  <p>in JS</p>
  
  <pre><code>    $("#limit").bootstrapSwitch();
      $('#limit').on( 'switchChange',function () {
      if ($("#limit").bootstrapSwitch('state') === true)
      {
          console.log('On');
      }
      else {
          console.log('Off');
      }
  });
  </code></pre>
  
  <p>When i change switch i could not get any output on log,</p>
  
  <p>What is wrong? and how can we get value of input field with bootstrap switch?</p>
  
  <p>Thanks,</p>