title: use js function with parameters as a jQuery callback function
body: <p>I have a js function with a parammeter:</p>
  
  <pre><code>function dimension(id){
      val = {
      acMaximize : [
          ["#container", "100%", "90%"]
      ],
      acMinimize : [
          ["#container", "70%", "60%"]
      ],
  };
  var sub = val[id];
  var sub1;
  for(i in sub){
      sub1 = sub[i];
      $(sub1[0]).css({
          width : sub1[1],
          height : sub1[2]
      });
  }
  }
  </code></pre>
  
  <p>And I've tried calling this function in bind method:</p>
  
  <pre><code>$(document).bind("keydown", "Ctrl+A", dimension(id)); // &lt;-- this didn't work.
  </code></pre>
  
  <p>How could I do this?</p>
  
  <p>//Edit</p>
  
  <p>Just in case of jQuery Hotkeys.</p>