title: jQuery calculate width, and apply width to desired container
body: <p>I am attempting to calculate the viewport width, and then subtract a value from that then apply the result to the desired container. I've found some examples that are close and managed to cobble together the following but it's not doing any thing at all.</p>
  
  <pre><code>$(document).ready(function() {
  var aa = $(window).width(); 
  var bb = $(“#controlWidget”).width();
  var cc = (aa – bb) + "px";
  document.getElementById(‘thumbList’).style.width = cc;
  });
  </code></pre>
  
  <p>Thanks in advance!</p>