Force Span Title Display

Is there a way to force the title of a span to display when a form element, which is contained within the span, receives focus?
LVL 1
jcreswellAsked:
Who is Participating?
 
jmar_clickConnect With a Mentor Commented:
If you're willing to use javascript, I found this with a quick google lookup. I haven't tested it myself but it seems it would work. Hopefully you can implement it.

http://www.thescripts.com/forum/thread452865.html
0
 
Irwin SantosComputer Integration SpecialistCommented:
In a form element? no.. you're limited by the number of characters that you assign
0
 
jcreswellAuthor Commented:
I think I may not have made myself clear.  The code looks as such:

<span title="Please enter your ID Number."><input nam="idnum" type="text"></span>

If I hover the mouse atop the element (or text, or anything else in the span), it displays the title in a "tooltip" or "what is this" type box containing the text in the title element of the span.  I want to know if there is a way to make the span display that box if the user only tabs to the field - without having  to hover the mouse.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
jmar_clickCommented:
Why dont you try using a DIV and make it visible on the gotfocus event for that field.
0
 
jcreswellAuthor Commented:
jmar_click,

Mostly...for time's sake - I have hundreds of forms to do this to.  (Previous designer wasn't a fan of "templates" or "CSS" or anything else to make my job easy - sure you all know how that goes.)  The titles are already set so I was hoping there was a way to do this without making DIVs for everything.

I'll try to work out an elegant solution using DIVs.

I wonder if it is even possible to trigger a span's title without hovering.  Anyone know for sure?
0
 
jmar_clickCommented:
I know all about having to work with bad html. Unfortunately since there are that many forms, I don't think you will be able to get out of doing some hard work.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.