jQuery‎ > ‎

Web Storage


jQuery permanent local storage


<script type="text/javascript">
    $(document).ready(function(){
    if (!localStorage.publicPortalSelectedMenuItem)
        localStorage.publicPortalSelectedMenuItem="Home";
    $("div.leftcol1:contains('" + localStorage.publicPortalSelectedMenuItem + "')").css("color","#fff");   
});





Comments