title: Problem passing arguments to function using .submit in JQuery
body: <p>I cannot for the life of me understand why this doesn't work.</p>
  <pre><code>function test(event) {
    alert(event.data.fieldone);
  };
  
  $('form').submit({fieldone: $('#field').val()}, test);
  </code></pre>
  <p>I just end up with a blank alert. If I hardcode a string and pass that instead it works fine and if I declare a variable within the function and fetch the data that way it also works. What gives?</p>