form.find('input[name]').each(function () {
      const e = $(this)

      fields[e.attr('name')] = e.val()
    })