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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:22:09+00:00 2026-06-07T19:22:09+00:00

For a project I was working on, I was instructed to use a node

  • 0

For a project I was working on, I was instructed to use a node variable to find out what element and what part of the element the mouse is hovering.

What is a node variable and how do i use it to achieve the above?

An instance or example of what i am trying to do, if it helps, is find out what element or if possible what part of an element the mouse is over. Meaning, if the mouse is hovering over a <p> in the html document, i want to know that and if possible exactly what text inside said <p> in the mouse is over. Well, i don’t need to know the words, i just want the words to be stored in a variable so i can apply CSS styles to them.

I really appreciate any and all help with this.

Thanks in Advance!

  • 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-07T19:22:11+00:00Added an answer on June 7, 2026 at 7:22 pm

    you can try event.target that returns the target of the event:

    The DOM element that initiated the event.

    $('body').on("mouseover", function(e){
       $(e.target).addClass('hovered');
       alert($(e.target).text())
    })
    

    DEMO

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

Sidebar

Related Questions

As part of a Project I'm working on I've been instructed to implement Google
I have a working project that Im amending, it crashes after trying to use
I'm working on a project that involves the use of very sensitive data, and
I have tried for hours to get my project working but the EJB part
I'm working on a PhoneGap (aka Cordova) project which makes use of ShareKit 2.0
I have a project working fine under MSVS 2010 SP1. I'm trying to convert
I have a web project working perfecly on my web server and on my
Currently my project is working perfectly on IOS development target 3.2 But as soon
I'm changing my project from working with Linq-to-SQL to working with Entity Framework. I
Im writing some helper functions for a project im working on. I've always wanted

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.