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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:21:46+00:00 2026-06-13T13:21:46+00:00

the jquery index() seems not recognize one of the element, always say cannot read

  • 0

the jquery index() seems not recognize one of the element, always say “cannot read property ‘length’ of undefined” here is my code.. mnumber is the one causing problems.i need number and mnumber to be able to track use mouse, and give them correct value base on which box they hover to.

$(".module-details-lesson-container").hover(function () {
    var number = $(".module-details-lesson-container").index(this) - 9;
    var mnumber = $(".module-container").index(this);
    jQuery.each(modules[1][number], function (index, value) {
        $(".module-details-words-learned-body").eq(1).append("<div class='module-details-word'>" + value + '</div>');
    });
}, function () {
    $(".module-details-word").remove();
});

css file

<div class="module-container">
<div class="module-tab  envelope-heading white-font"></div>
<div class="module-body">


            <div class="module-details-lesson-container"></div>
            <div class="module-details-lesson-container"></div>
        </div>

        <div class="module-details-words-learned">
            <div class="module-details-words-learned-body ">
                <div class="module-details-word"></div>
            </div>
        </div>

</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-06-13T13:21:47+00:00Added an answer on June 13, 2026 at 1:21 pm

    I think it have to be $(this) instead of this everywhere it mentioned

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

Sidebar

Related Questions

How to get checked RadioButton Index using jQuery? I need to read it and
Ok here is the problem. jQuery Resizable just does not work on this page:
there seems to be another problem ..not with JQuery code but with Action controller
I´m building a small application with Jquery and PHP. Jquery (index.html) adds Form Fields
How to create imaged scrollbars, for example: http://www.openstudio.fr/jquery/index.htm Basically, I want to create my
What's the best way for selecting a table row by index using jQuery? Thanks
in my code for index.html I use jQuery and have a link with id
I got this jQuery pre-loading script running on a index.html page loading about 10Mb
I have the following file structure: |- index.html vendor |- jquery.min.js (some libraries) js
I am trying to solve a z-index problem with the jQuery UI Dialog, similar

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.