title: Can't set CSS using variable - jquery
body: <p>I am trying to dynamically set css with variables I retrieve from what a user types into a textfield.</p>
  
  <p>This is the line of code:</p>
  
  <pre><code>$(get_elem_hierarchy()).css($(this).data('theCss').theProp, $(this).data('theCss').theVal);
  </code></pre>
  
  <p>Everything works fine. Both the css property and the css value trace to the console correctly but for whatever reason it won't set it. If I hardcode it works fine.</p>
  
  <p>I have tried wrapping quotes around those as well and that doesn't work either so that's not the issue.</p>
  
  <p>Am I missing something? I've looked all over and can't find anything that even remotely comes close to discussing this issue so maybe I'm going about this the wrong way.</p>
  
  <p>Any help would be greatly appreciated.</p>