title: JQuery : call a function with a String Variable
body: <p>I'm creating a JQuery plugin which takes in parameter a String : handler.</p>
  
  <p>Depending on that, my plugin will be launched.
  Example if : "handler = submit"</p>
  
  <p>In my plugin I'll call :</p>
  
  <pre><code>$("form").submit(function() {
  // Code inside
  });
  </code></pre>
  
  <p>With handler = "focusOut"</p>
  
  <pre><code>$("form").submit(function() {
  // Code inside
  });
  </code></pre>
  
  <p>I've tried :</p>
  
  <pre><code> $("form").this[handler](function()
   $("form").window[handler](function() 
  </code></pre>
  
  <p>But no results.
  Any idea ?
  Thanks for the help :)</p>