title: Cannot submit form using jquery
body: <p>I have a problem at submitting a form within sweetalert2 using jquery.</p>
  
  <p>Here's the code that i have:</p>
  
  <pre><code>&lt;?=form_open_multipart('controller_path','id="form_service"' , ''?&gt;
  &lt;input type="button" name="update" id="submit-operate" value="Submit To Operated" class="btn btn-success" onclick="service.submitService()"/&gt;
  &lt;?= form_close(); ?&gt;
  </code></pre>
  
  <p>and this is service.js:</p>
  
  <pre><code>submitService: function(){
          swal({
              title: 'Are you sure?',
              text: "You will submit this service to the next phase",
              type: 'warning',
              showCancelButton: true,
              confirmButtonColor: '#3085d6',
              cancelButtonColor: '#d33',
              confirmButtonText: 'Submit'
          }).then((result) =&gt; {
            if (result.value) {
                  $("#form_service").submit()
              }
          });
      }
  </code></pre>
  
  <p>The sweetalert works as well, and when I do the <code>console.log</code> in <code>if(result.value)</code> it shows on the console, but the form doesn't submit. Can somebody show me the correct way? Thank you.</p>