title: Having troubles with jquery proxy
body: <p>I need to do some event bindings here and there to the same function. I'll try to simplify my code as much as possible.</p>
  
  <p>This is my event binding:</p>
  
  <pre><code>$(".preset").on("submit",$.proxy(submit_preset,this,"create"));
  </code></pre>
  
  <p>This is the function which works if I do it as annonymous  <code>$(".preset").on("submit",function(){ etc });</code> :</p>
  
  <pre><code>function submit_preset(e, url){
          e.preventDefault();
          var _formdata=new FormData(($(e)[0].target)); //don't mind this weird $(e)[0].target
          $.ajax({
              url:url,
              data:_formdata,
              type:'post',
              success:function(datapass){
                  console.log(datapass);
              }
          });
      }
  </code></pre>
  
  <p>What am I doing wrong? The function parameters or the proxy parameters? or something else?</p>
  
  <p>Post-answer: the function content may have missed something, but the problem was, which I find counter-intuitive, I had to swap the parameters. Check the jsfiddle of the answer and the comments too. :)</p>