title: How to get border width in jQuery/javascript
body: <p>How do I parse the border width from </p>
  
  <p><code>style="border: solid 1px black;"</code></p>
  
  <p>in jQuery/javascript?</p>
  
  <p><code>$elem.css('border-width')</code></p>
  
  <p>doesn't do it.</p>
  
  <p>Note I need to parse the width from the css, as the element may be <code>display:none</code></p>
  
  <p>Thanks</p>
  
  <p><strong>Edit</strong> I'm not actually using an in-line style, I just wrote it that way for simplicity as I didn't realise there was any behavoural difference. It seems to work fine for inline styles though, but still can't get any value from an applied css class.</p>