title: Add a confirm bootstrap modal/dialog to checkbox
body: <p>I have a form checkbox inside map. When unchecked I want the user to get a bootstrap confirm dialog to ask "are you sure you want to turn off switch?" before the handle command. </p>
  
  <p>code:</p>
  
  <pre><code>command.onAdd = function (map) {
        var div = L.DomUtil.create('div', 'command');
        div.innerHTML = '&lt;form&gt;&lt;input id="command" checked="true" type="checkbox"/&gt;switch&lt;/form&gt;'; 
        return div;
  };
  command.addTo(map);
  
  document.getElementById("command").addEventListener("click", handleCommand, false);
  
  function handleCommand() {
  
      if(this.checked == true){
  
      }
      else
      {
  
      }
  }
  </code></pre>