Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 349701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:28:58+00:00 2026-05-12T11:28:58+00:00

I have a little problem with some jquery and http://www.mikage.to/jquery/jquery_history_noc.html The function works great,

  • 0

I have a little problem with some jquery and http://www.mikage.to/jquery/jquery_history_noc.html

The function works great, my problem is to highlight an li class, tab menu, when user backspace with the keyboard or just use the back button on their browser to return the last seen page.

html code

li code with the class active, when page is on

<li class="active"><a href="#prices" rel="history"><span>Prices</span></a></li>

jquery code:

This is loaded when

$(document).ready 
    $('li > a').click(function() {
    $('li').removeClass();
    $(this).parent().addClass('active');        
});

Can i make som …. keyCode == 8 (backspace key) to return last page ?
Can somebody give me a tip, or mabye give me an code example :-/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:28:59+00:00Added an answer on May 12, 2026 at 11:28 am

    I would consider storing the state in a cookie (whether or not a class has been added to an element, for instance), and re-initializing your page from the values written to the cookie within your $(document).ready function. I did something similar to keep expandy bits of the page expanded. Check out the jQuery cookie plugin.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing some documentation and I have a little vocabulary problem: http://www.example.com/en/public/img/logo.gif is
I have a little problem with some jQuery code. In my page I have
enter code here I am having a little problem with jquery.empty(). I have some
I have a little problem with some preg_replace functions in PHP. First I have
I have a little problem. I had some JComboBox to a JDialog but they
I have little unusual problem to solve. I need some hint or links to
Today i have a little problem containing a File Upload. First some Infos: Rubyversion:
I'm with a little problem. I have the container div for some elements which
My problem is related to using the JQuery Tools Tooltip Plugin ( http://flowplayer.org/tools/tooltip.html )
I have a little problem..but im goin' to crazy... In the html i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.