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 8697233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:28:22+00:00 2026-06-13T01:28:22+00:00

So I was wondering how you would do this. I have a code that

  • 0

So I was wondering how you would do this.

I have a code that looks like this:

<body>
  <div class="header">
  </div>

  <div class="content">
    <div class="001">
      Content
    </div>
    <div class="002">
      Content
    </div>
    <div class="003">
      Content
    </div>
  </div>

</body>

And my jQuery works like this :

jQuery('.001').click(function(){
    jQuery(this).load('pages/001.html');
});

So what I would like is too add a line saying that if i click on another div (002 for example) to unload / go back to divs 001 state.

How would you achieve this ?

I was thinking of varing the contant at the beginning of the jQuery code and reloading it before each load, but I don’t know if this is optimal.

Any ideas / tips ?

Thanks !

  • 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-06-13T01:28:24+00:00Added an answer on June 13, 2026 at 1:28 am

    If your loaded pages does not contain so much complex data, such as images, videos, etc. Use hide() and show() instead of loading html inside a div and loosing the previous state. If you use it for different purpose, create another div, make it invisible, and store your previous state content inside it, Thus you can swap whenever you want in that case.

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

Sidebar

Related Questions

So I have a block of code that looks like this: stack.forEach(function(element){ //sys.puts(sys.inspect(element, false,
I have a query that looks something like this: select xmlelement(rootNode, (case when XH.ID
A few questions about Castle Windsor. I have a service that looks like this:
So I have a a text file that looks something like this: public >ret
I've got some R code that looks basically like this: compute.quantiles <- function(mu, type)
Good afternoon all, I have a class which looks like this: public class Grapheme
I have a method that looks like this: public void SomeMethodThatLoadsUserData() { Method1(); Method2();
I have a aspx page that looks something like this: <table runat=server id=tblTEst> <tr
I have a method that starts like this: public static UnboundTag ResolveTag(Type bindingType, string
I have a snippet of code im trying to parse with nokogiri that looks

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.