title: What is the best solution for scrollWidth problem?
body: <p><strong>In Chrome console:</strong></p>
  
  <pre><code>$('.table-responsive').width(); //working
  $('.table-responsive')[0].scrollWidth; //working
  </code></pre>
  
  <p><strong>In code while rendering HTML:</strong></p>
  
  <pre><code>$('.table-responsive').width(); //working
  $('.table-responsive')[0].scrollWidth; //not-working
  </code></pre>
  
  <blockquote>
    <p>Cannot read property 'scrollWidth' of undefined</p>
  </blockquote>