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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:47:34+00:00 2026-06-05T18:47:34+00:00

This is two questions in one, so here we go. I have a simple

  • 0

This is two questions in one, so here we go.

I have a simple code that I got from jsfiddle (at http://jsfiddle.net/tedp/aL7Xe/1/)

But it it doesn’t call the jquery function when I put it in my website (live demo at http://beattrack.net/test.php#).

Also, it is adding some funny symbols to the end of it. Is that my fault or my text editor’s? I am using textwrangler–saving as UTF-8. When I try to save to ISO Latin 9, it says there are unnamable characters–it’s happening on more than just this one webpage. Here’s a screenshot:

Screenshot

<html>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<head>

<style type="text/css">
    #menucontainer {
        display:none;
    }​
</style>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" />
  $('html').click(function() {
     $('#menucontainer').hide(); 
  });

  $('#menuwrap').click(function(event){
     event.stopPropagation();
  });

  $('#menutoggle').click(function(event){
     $('#menucontainer').toggle();
  });
</script>
</head> 

<body>
 <div id="menuwrap">
  <a href="#" id="menutoggle">Menu Toggle</a>
  <ul id="menucontainer">
    <li><a href="#">One</a></li>
    <li><a href="#">Two</a></li>
    <li><a href="#">Three</a></li>
  </ul>
 </div>​

</body>
</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-06-05T18:47:35+00:00Added an answer on June 5, 2026 at 6:47 pm

    Remove the src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" attribute from the script tag, and that should work. Make a new script tag for jquery:

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script type="text/javascript">
      $('html').click(function() {
         $('#menucontainer').hide(); 
      });
    
      $('#menuwrap').click(function(event){
         event.stopPropagation();
      });
    
      $('#menutoggle').click(function(event){
         $('#menucontainer').toggle();
      });
    </script>
    

    Also, put the second element at the end of the .

    As for the strange characters, try using an HTTP header in your PHP code to specify that the page is in UTF-8. My browser is saying that the encoding for you page is ISO-8859-1, hence the strange characters.

    header("Content-Type: text/html; charset=utf-8";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question has two parts (maybe one solution?): Sample vectors from a sparse matrix
It is a relevent question with this previous one. Bacasically I have two forms,
I have two questions, actaully... First off, Why cant I do this: List<Object> object
I have a simple script that should cause one of three divs to be
NOTE: This is the simple version of my previous question that SHOULD have been
I have a database structure that has two one-to-many relationships. I have a website,
I have two tables that pertain to this part of a trivia quiz game:
This is kinda....a two part question. The first one is much more important than
Note: this question is related to this one , but two years is a
This is an extension of this question: SQLite problem selecting two columns as one

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.