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