title: Assigned width in percentage but want to get it in pixels
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.test {
    border: 1px solid;
    cursor: pointer;
    height: 10px;
    position: relative;
    width: 100%;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="test1" class="test"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have displayed my HTML <code>id</code> and its CSS. Now when I am doing <code>$('#test').width()</code> I am getting <code>100</code>. I want its <code>width</code> in pixels (not in <code>%</code>).</p>
  
  <p>Can anyone tell how to get its width in pixels?</p>