title: JQuery ajax post throws error
body: <p>When I try to send data to the server using Jquery POST I get the following error. </p>
  
  <p>What am I doing wrong?</p>
  
  <pre><code>  $('.btnEditUser').click(function () {
            console.log('btn edit user clicked')
            var rowUser = $(this).parent()
            var rowUserData = rowUser.find(":input").val()
            var oForm = new FormData()
            oForm.append("rowUserData", rowUserData)
            console.log("oForm", oForm)
            var sUrl = 'edit-user/'
            console.log("sUrl ", sUrl);
            $.post(sUrl, oForm, function (uData) {
              console.log('SUCCESS')
            })
          })
  
  **
  </code></pre>
  
  <p>Uncaught TypeError: Illegal invocation
          at e (<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:7727" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:7727</a>)
          at Ab (<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:7608" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:7608</a>)
          at Function.r.param (<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:7918" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:7918</a>)
          at Function.ajax (<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:12227" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:12227</a>)
          at Function.r.(anonymous function) [as post] (<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:14489" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:4:14489</a>)
          at HTMLButtonElement. (<a href="http://localhost:3000/view-users:62:9" rel="nofollow noreferrer">http://localhost:3000/view-users:62:9</a>)
          at HTMLButtonElement.dispatch (<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:3:10316" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:3:10316</a>)
          at HTMLButtonElement.q.handle (<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:3:8343" rel="nofollow noreferrer">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:3:8343</a>)
      e @ jquery.min.js:4
      Ab @ jquery.min.js:4
      r.param @ jquery.min.js:4
      ajax @ jquery.min.js:4
      r.(anonymous function) @ jquery.min.js:4
      (anonymous) @ view-users:62
      dispatch @ jquery.min.js:3
      q.handle @ jquery.min.js:3</p>
  
  <p>**</p>