Javascript Tooltip Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nelson Joseph
    New Member
    • Dec 2006
    • 14

    Javascript Tooltip Help

    Hai all,

    How can I display a tooltip when i click the text box please help me.

    Thanks in advance

    - Nelson
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Search for a decent tooltip (Google "javascript tooltip") and then call it onclick.

    Comment

    • rnd me
      Recognized Expert Contributor
      • Jun 2007
      • 427

      #3
      setting the title attrib of the textbox displays a tooltip in a nice cross-browser manner that doesn't even require javascript to be enabled.

      you could set title="", and then change the title attrib onclick if you want to hide it first...

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Good point, though if you want more control over the display/formatting, you can use DHTML tooltips.

        Comment

        • hsriat
          Recognized Expert Top Contributor
          • Jan 2008
          • 1653

          #5
          If not satisfied with title attribute, try this

          Comment

          Working...