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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:03:09+00:00 2026-06-05T03:03:09+00:00

Basically I have a web page that has a div id=content and a div

  • 0

Basically I have a web page that has a div id=”content” and a div id=”sidebar”,

What I would like to do is change the content in the content div when a link/button is clicked in the sidebar without having a serperate page for each article.

The reason being;

I am doing a BIO page for some multiple bands and there would be multiple buttons for each band then when a user clicks the button/link the content would change.

Any idea’s, I have been looking into .click using jQuery or maybe PHP but not exactly sure on how to implement it.

  • 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-05T03:03:11+00:00Added an answer on June 5, 2026 at 3:03 am

    You could put each of the articles in one HTML file on your server, each with a div wrapped around it, like this (let’s say the file is called myArticles.html and is in the same folder as your main page):

    <div id='article1'>
        <b>ARTICLE 1</b> This is my first article
    </div>
    
    <div id='article2'>
        <b>ARTICLE 2</b> This is my second article
    </div>
    

    Then use jQuery’s .load function to load this data using AJAX into your page.

    Say your button for article 1 has the id = ‘articleButton1’ and 2 has id = ‘articleButton2′ (and both with href=’#’, so the page doesn’t change) then this jQuery would work:

    $('#articleButton1').click(function(){
        $('#content').load('myArticles.html #article1');
    }
    
    $('#articleButton2').click(function(){
        $('#content').load('myArticles.html #article2');
    }
    

    This picks the correct div out of that page on your server and puts it into the #content div

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

Sidebar

Related Questions

i have a div on a web page that basically acts as a panel
I have a web project that has a page called editemployee.aspx. The code behind
Basically, I have this webpage that is the header on any page you go
I have a web-app that has a master mysql db and four slave dbs.
I have Web page in share-point 2010 ,its has two web parts one for
I have web site set up that has some forms authentication through LDAP. I'm
I have a web page that sends a request to a cgi script that
So I have a page of HTML that has its own CSS file. It
I basically have this web page where you can narrow your search results by
I have a page that has a form backing object that contains a collections

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.