title: Select field and custom input display only the input value as result sweetalert2
body: <pre><code>swal({
  title: 'Please Select a contact to send money',
  input: 'select',
  inputOptions: {
  '1': 'Jhon',
  '2': 'Gemie',
  '3': 'Paul'
  },
  inputPlaceholder: 'Select a contact',
  html: 'Amount: &lt;input id="amount" class="form-control swal2-input"&gt;',
  preConfirm: function () {
  return new Promise(function (resolve) {
      resolve(
          document.getElementById('amount').value,
      )
  })
  }
  onOpen: function () {
  $('#swal-input1').focus()
  }
  }).then(function (result) {
  swal(JSON.stringify(result))
  }).catch(swal.noop)
  </code></pre>
  
  <p>This code above show only the text input value as result, How can i get also the select value in the result array. I use SweetAlert2, Any idea? Thanks !!</p>