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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:11:02+00:00 2026-05-25T23:11:02+00:00

After making the menu disappear I cannot get my content to show without listing

  • 0

After making the menu disappear I cannot get my content to show without listing a specific html.

HERE is the HTML:

<div id="header">
<h1>N300 Project Gallery</h1>
</div>
<div id="container">
<div id="utility">
<ul>
    <li><a href="about.html">About</a></li>
    <li><a href="projects.html">Projects</a></li>

</ul>

</div>
    <div id="index-content">?</div>
    <div id="footer">This is the footer</div>
</div>

Here is my script:

$(document).ready(function() {

    $('#utility a').click(function(e){
        e.preventDefault();
        $('#utility').hide('normal',loadContent);
    });
    function loadContent() {
        $('#index-content').load(url+ '#content')
    }
});

HERE IS THE FRAGMENT I WANT TO MOVE:

<div id="content">
    <p>Hello! My name is Brittany Shephard.</p>
</div>
  • 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-25T23:11:03+00:00Added an answer on May 25, 2026 at 11:11 pm

    Note that you need an extra space before #content in the URL you pass to .load() if you want the fragment loading behavior (+ ' #content' instead of + '#content').

    Your fragment is in a separate file, correct?

    Assuming your fragment is returned from projects.html #content, try:

    function loadContent() {
        $('#index-content').load($(this).attr('href')+ ' #content');
    }
    

    From the JQuery docs for hide, this is set to the hidden DOM node in the callback. I’m assuming you want to load URL from the anchor you’re hiding, so you need to grab the href attribute from that node.

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

Sidebar

Related Questions

After making cabal install of the darcsden code I get this message: cabal: The
I'm working on a div (parent) that has two other divs (menu and content)
I'd like to move the menu separator ( look here ) currently just after
On the app I am making, on the home menu screen that you get
After making a gzip deflate request in PHP, I receive the deflated string in
I pushed my app to heroku after making sure it works fine in my
On my site, users choose colors they want and after making their selections they
Django is making very nice forms after creating a models.py and an admin.py. How
I'm making a php file that will run an event after five minutes have
I'm making a custom component that shows a little drop down area after you

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.