title: How to use jQuery's .css() with variable property name?
body: <p>Instead of writing:</p>
  
  <pre><code>$('div').css({'backgroundColor': 'red'});
  </code></pre>
  
  <p>I want to write something like:</p>
  
  <pre><code>$('div').css({get_property_name(): 'red'});
  </code></pre>
  
  <p>where <code>get_property_name()</code> will return <code>"backgroundColor"</code>, <code>"color"</code>, <code>"border-top-color"</code>, or any other property.</p>
  
  <p>What options do I have to make it work ?</p>