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

  • Home
  • SEARCH
  • 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 8552981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:32:39+00:00 2026-06-11T14:32:39+00:00

Earlier today I asked a question and got a good answer here . However

  • 0

Earlier today I asked a question and got a good answer here. However when I added the code to my MVC3 project the jQuery mouseover event never gets fired. The jsFiddle in the previous question (here) works fine, but not when I add the code into my script file.

Therefore I decided to modify my _Layout file with a much simpler test and that also fails to work with the mouseover event. Below is my simple test:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <script src="@Url.Content("~/Scripts/jquery-1.8.1.js")" type="text/javascript"></script>    
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.23.js")" type="text/javascript"></script>   
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>   
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>

    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />

    <script>
        $(document).ready(function () {   
            $("#testtest").mouseover(function () {
                $("#testtest").text("OVER");
            }).mouseout(function () {
                $("#testtest").text("OUT");
            });
        });
    </script>
</head>
<body>
    <div class="page">
        <header>
            //SNIP
        </header>
        <section id="main">
            <div>

            </div>
            @RenderBody()
        </section>
        <footer>
            //SNIP
        </footer>
    </div>
    <div style="clear: both; height: 50px"></div>
    <div id="#testtest" style="background-color: Red; height: 100px; width: 400px; display: block">
        NOTHING
    </div>  
</body>
</html>

I have also tried the mouseenter and mouseleave events, but no change.

Can anyone help me out here? I’m sure I’m missing something simple here, but I can’t figure it out!

Thanks very much.

  • 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-11T14:32:40+00:00Added an answer on June 11, 2026 at 2:32 pm

    Change <div id="#testtest" to <div id="testtest"
    # is just a key for jquery to search by ID

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

Sidebar

Related Questions

I asked a question earlier today here . However, what I neglected to check
I asked this goofy question earlier today and got good answers. I think what
Earlier today I asked a question about configuring log4net from code and got an
I asked a question here earlier today and got that fixed, but now I
I asked a question earlier today ( Methods of Managing Source Code ) as
Following a question asked here earlier today and multitudes of similary themed questions, I'm
I just asked a question earlier today because I wanted to run an executable
Earlier today, I asked a question about the way Python handles certain kinds of
I asked another version of this question on the gamedev.SE site earlier today but
earlier today I asked this question . So since moq creates it's own class

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.