title: Javascript - get span by the class?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3808808/how-to-get-element-by-class-in-javascript">How to Get Element By Class in JavaScript?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to get the text from inside of a span. The span has no ID. It only has a class. There would only be one span with this class. Does anyone know how I can get this span element in javascript? Thanks!</p>
  
  <pre><code>&lt;span class="galleria-current"&gt;1&lt;/span&gt;
  </code></pre>
  
  <p>This is slightly different than <a href="https://stackoverflow.com/questions/3808808/how-to-get-element-by-class-in-javascript">How to Get Element By Class in JavaScript?</a> which is asking the more generic "get an element with a class", in case there's an easier way for spans, plus that question is about replacing text, whereas I want to <em>get</em> the innerHTML in this case.</p>