title: jQuery param dynamic object name
body: <p>why can't i have a variable in an object? I get an error like: </p>
  
  <pre><code>"Uncaught SyntaxError: Unexpected token this"
  </code></pre>
  
  <p>My code is like this.</p>
  
  <pre><code>$("#search_options input:checkbox").on('click', function() {
    var params = { 
      $(this).attr('name') : $(this).val(),
    };
    var str = jQuery.param(params);
  });
  </code></pre>
  
  <p>I'm sure that $(this) is working because I tried to console.log it outside the params object then i is working.</p>