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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:40:31+00:00 2026-06-13T11:40:31+00:00

I have about 1000 Textfields on our page, and need to display a Tooltip

  • 0

I have about 1000 Textfields on our page, and need to display a Tooltip above the textfield that the user is currently typing in.

It sounds simple, but I’m having difficulty figuring out how to display it on top of everything else on the page and without breaking flow of the document.

I can’t use any external libraries for this either, which makes it a little more difficult. I am only allowed to use pure JS (or a language that compiles to pure JS, such as TypeScript).

Does anyone have any links, tutorials or anything like that? It would be very helpful.

Thank you

Edit:
I am aware that you can use the Title attribute on an element, however this tooltip needs to have more than just text inside it and needs to be bigger and directly above the textbox.

  • 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-13T11:40:32+00:00Added an answer on June 13, 2026 at 11:40 am

    Something like this might help you:

    http://jsfiddle.net/ysuw5/

    <div id="container">
        <input type="text" class="tooltip" onfocus="theFocus(this);" onblur="theBlur(this);" title="asdf" /><br />
        <input type="text" class="tooltip" onfocus="theFocus(this);" onblur="theBlur(this);" title="asdf2" /><br />
        <input type="text" class="tooltip" onfocus="theFocus(this);" onblur="theBlur(this);" title="asdf3" /><br />
        <input type="text" class="tooltip" onfocus="theFocus(this);" onblur="theBlur(this);" title="asdf4" /><br />
    
        <div id="tooltip"></div>
    </div>
    
    function theFocus(obj) {
        var tooltip = document.getElementById("tooltip");
        tooltip.innerHTML = obj.title;
        tooltip.style.display = "block";
        tooltip.style.top = obj.offsetTop - tooltip.offsetHeight + "px";
        tooltip.style.left = obj.offsetLeft + "px";
    }
    
    function theBlur(obj) {
        var tooltip = document.getElementById("tooltip");
        tooltip.style.display = "none";
        tooltip.style.top = "-9999px";
        tooltip.style.left = "-9999px";
    }
    

    This is clearly very narrow-minded and would need to be modified to fit exactly what you need. I didn’t bother binding the focus and blur events with Javascript – it would be better than putting them in the HTML.

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

Sidebar

Related Questions

So I have about 1000 files that are multiple columns, but I'm only interested
I have many (about 1000) images (printscreens), and I need to crop these images
I have a DataGridView in a Winforms app that has about 1000 rows (unbound)
I have a simple Parallel.Foreach loop that has about 1000 rows in the DataTable,
I have a list of about 1000 single integers. I need to be able
I have an ObservableCollection of about 1000 objects that needs to be filtered (searched)
I have a collection of synopses that are about 1000 char long each. In
I have a CSV-like text file that has about 1000 lines. Between each record
I have a asp.net web site for our company and handles about 1000 -
I have a larger network about 1000 pcs on LAN I need to know

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.