Ok, i have this code
//start our session session_start(); //check if there is a page request if (isset($_GET[\'page\'])) { //if there is a request page then get
$('a[page='+$page+']').addClass('active');
jsfiddle
Like so:
$("a[page="+$page+"]").addClass("active");