title: sweetalert remove(); on confirmaition
body: <p>I want to run the remove function on  all <code>checked</code> <code>.select-input</code> when the <code>.delete</code> button is pressed and the <code>confirmButton</code> is clicked.</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-js lang-js prettyprint-override"><code>$(".delete").click(function() {
    swal({
      title: "Are you sure?",
      text: "You will not be able to recover this lorem ipsum!",
      type: "warning",
      showCancelButton: true,
      confirmButtonColor: "#DD6B55",
      confirmButtonText: "Yes, delete it!",
      closeOnConfirm: false
    }).then(result =&gt; {
      if (result.value) {
        swal("Deleted!", "Your file has been deleted.", "success"),
          function(event) {
            event.preventDefault();
            $(".post-list")
              .find(".select-input:checked")
              .closest(".item")
              .remove();
          };
      } else if (
        // Read more about handling dismissals
        result.dismiss === swal.DismissReason.cancel
      ) {
        swal("Cancelled", "Your imaginary file is safe :)", "error");
      }
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.21.1/sweetalert2.min.css" rel="stylesheet" /&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.21.1/sweetalert2.min.js"&gt;&lt;/script&gt;
  &lt;button class="delete"&gt;delete&lt;/button&gt;
  &lt;div class="post-list"&gt;
    &lt;div class="item"&gt;
      &lt;label&gt;
  &lt;input id="post-select1" type="checkbox" class="select-input" name="select-check"&gt;
  &lt;/label&gt; 1
    &lt;/div&gt;
    &lt;div class="item"&gt;
      &lt;label&gt;
  &lt;input id="item2" type="checkbox" class="select-input" name="select-check"&gt;
  &lt;/label&gt; 2
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>