title: How to disable anchor tag click when clicked on bootstrap toggle button inside it
body: <p>I am new to BootstrapToggle and I am using Bootstrap toggle button inside an anchor tag like this : </p>
  
  <p><a href="https://i.stack.imgur.com/FDunM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FDunM.jpg" alt="enter image description here"></a></p>
  
  <p>Here is the code snippet : </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;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/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://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet"&gt;
  &lt;script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"&gt;&lt;/script&gt;
  &lt;a onclick="alert('hello'); return false;"&gt;
     &lt;span&gt;Hello World&lt;/span&gt;
     
     &lt;input type="checkbox" data-toggle="toggle" data-on="Accepted" data-off="Rejected" data-onstyle="success"&gt;
          
  &lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Now If I toggle the button the anchor tag alert also gets called. I want only my 
  button to be toggled If I change it not the anchor tag alert should be called in that case.</p>
  
  <p>Any help would be appreciated.</p>