title: ExtJs - Get element by div class?
body: <p>How do I get the <strong>ExtJs component object</strong> of a Div by class name?</p>
  
  <p>Say my div is:</p>
  
  <pre><code>&lt;div class="abc"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How do I get the ExtJs object of this Div to perform e.g. <code>getWidth()</code></p>
  
  <p>Note: There is no <code>id</code> given.</p>
  
  <p><strong>What I tried:</strong></p>
  
  <pre><code>Ext.select(".abc")
  Ext.query(".abc")
  </code></pre>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>Error:
  <code>Object  has no method 'getWidth'</code></p>
  
  <pre><code>&lt;div id="main"&gt;
  &lt;div class="abc"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  
  
  <pre><code>  var d = Ext.get( "main" );
    d.query('.abc').getWidth();
  </code></pre>