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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:23:49+00:00 2026-05-26T21:23:49+00:00

I would like to know if there is a way to be able to

  • 0

I would like to know if there is a way to be able to click a Link on the navigational Div tag and have it display on the content Div like if i had

<div id="nav">
<a href="infoto (div id="content")">a link </a></div>
<div id="content>show the stuff</div> 

From the comments below – the OP stated the following :

I am trying to redo a website but my imagagination is getting the better of me. If I have three links like home, about author, and about our mission. I would like to be able to click about author and in the main_content div tag show the html file aboutauthor.html

  • 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-26T21:23:49+00:00Added an answer on May 26, 2026 at 9:23 pm

    Alt 1: Use jquery tabs:
    See demo and code here: http://jqueryui.com/demos/tabs/

    Alt 2: Hide/show div in same html file:

    HTML:

    <div id="nav">
        <a href="#content1">Show content 1</a>
        <a href="#content2">Show content 2</a>
        <a href="#content3">Show content 3</a>
    </div>
    
    <div id="content1" class="toggle" style="display:none">show the stuff1</div> 
    <div id="content2" class="toggle" style="display:none">show the stuff2</div>
    <div id="content3" class="toggle" style="display:none">show the stuff3</div>
    

    jQuery:

    $("#nav a").click(function(e){
        e.preventDefault();
        $(".toggle").hide();
        var toShow = $(this).attr('href');
        $(toShow).show();
    });
    

    Demo: http://jsfiddle.net/5NEu3/3/

    Alt 3: Load from server ondemand:

    To load html into your main div you should use: http://api.jquery.com/load/
    Follow examples on that site. And be aware that the html side you are loading must be in same domain as you are hosting the new page.

    Html

    <a href="http:www.test.com/test1.html">Show content 1</a>
    <a href="http:www.test.com/test2.html">Show content 2</a>
    

    jQuery

    $("#nav a").click(function(e){
            e.preventDefault();
            $('#maindiv').load($(this).attr("href"));
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to PowerBuilder 12, and would like to know is there any way
I would like to know if there is a way to check if a
I would like to know if there is any way to add custom behaviour
I would like to know if there is some way to share a variable
I would like to know if there is a way to disable automatic loading
I would like to know if there is a way to keep the session
I would like to know if there is any way I can apply 100%
I would like to know if there is any way to return an char
I would like to know if there is a way to take create a
I would like to know if there is any way that I could build

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.