sql
php
iphone
css
ajax
python
ruby-on-rails
visual-studio
flash
html5
perl
algorithm
facebook
oracle
cocoa
tsql
delphi
apache
api
postgresql
try $('.page.active').text();
$('.page.active').text();
Your code doesn't work because it says, find me something with the class page that contains an element called active. Like
page
active.
<div class="page"> <active></active> </div>
Others have already given you the correct answer, but you might as well as know what's wrong with your existing code.
var yourInt = $('.page.active').text();