title: pass values of inputs form to then{} section in sweetalert2?
body: <p>I have a block of code:</p>
  
  <pre><code>&lt;form class="myfrom"&gt;
  &lt;select name="name1"&gt;&lt;option&gt;..&lt;option&gt;&lt;/select&gt;
  &lt;select name="name2"&gt;&lt;option&gt;..&lt;option&gt;&lt;/select&gt;
  &lt;select name="name3"&gt;&lt;option&gt;..&lt;option&gt;&lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I copied top block html code to sweetalert via jquery. (So Now,I have 2 same block in the Document)...I did it with this code:</p>
  
  <pre><code>var form = $('.myfrom').html();
  swal({
      title: 'edit form',
      html: form,
      showCancelButton: true
  }).then((result) =&gt; {
    if (result.value) {
       swal({
       title: 'done',
       text: 'it has been done!',
       type: 'success',
     });
     $.ajax({
        //call ajax
     });
   }
  </code></pre>
  
  <p>How can I pass value of selectboxes element to <code>then{}</code> section?</p>