• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

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?
0
jcreswell
Asked:
jcreswell
  • 3
  • 2
1 Solution
 
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
 
jmar_clickCommented:
Why dont you try using a DIV and make it visible on the gotfocus event for that field.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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:
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
 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now