title: Is it possible to set multiple data attributes using the jQuery.attr() function?
body: <p>This works:</p>
  
  <pre><code>$(myObj).attr("data-test-1", num1);
  $(myObj).attr("data-test-2", num2);
  </code></pre>
  
  <p>But this doesn't:</p>
  
  <pre><code>$(myObj).attr({
    data-test-1: num1,
    data-test-2: num2
  });
  </code></pre>
  
  <p>Am I missing something really obvious here?</p>