title: How to get the value of span tag based on css class in jquery?
body: <p>How to get the value of span tag based on css class in jquery?</p>
  
  <pre><code>&lt;span class="page-numbers current"&gt;3&lt;/span&gt;
  </code></pre>
  
  <p>I used </p>
  
  <pre><code>var pageno = $(".page-numbers current").val();
    alert(pageno);
  </code></pre>
  
  <p>it doesnt seem to work.any suggestion..</p>
  
  <p>EDIT:i am using jquery pagination plugin for pagination... for first page <code>1</code> and <code>prev</code> are assigned css class <code>class="page-numbers current</code></p>
  
  <pre><code>&lt;span class="page-numbers current prev"&gt;Prev&lt;/span&gt;
  &lt;span class="page-numbers current"&gt;1&lt;/span&gt;
  </code></pre>