I have created a dynamic link list in one page...
When a click is done on one link on that dynamic list i want to show to user that link is active, so i will add one cla
Try to use localstorage() like,
$(function(){
// if localstorage activeArea is set then add activearea class to menu
if(localStorage && localStorage.getItem('activeArea')==1){
$('a.areamenu').addClass("activearea");
}
$('a.areamenu').click(function(){
$('a.areamenu').removeClass("activearea");
$(this).addClass("activearea");
localStorage.setItem('activeArea',1);// set value in localstorage
});
});