How to highligh textbox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mynkow
    New Member
    • Jul 2007
    • 37

    How to highligh textbox?

    I have tons of textboxes. My boss wants to highlight the active textbox so in the css I wrote this class .textbox:focus{ background-color:Blue;} . The Problem is that do not work with IE. Javascript is not acceptable. Can you help me?
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Originally posted by mynkow
    I have tons of textboxes. My boss wants to highlight the active textbox so in the css I wrote this class .textbox:focus{ background-color:Blue;} . The Problem is that do not work with IE. Javascript is not acceptable. Can you help me?
    This won't work on IE, unless you provide a strict doctype. And for that, your code needs to validate that doctype.

    Comment

    • poe
      New Member
      • Jun 2007
      • 32

      #3
      Originally posted by hsriat
      This won't work on IE, unless you provide a strict doctype. And for that, your code needs to validate that doctype.
      I don't think any version of IE supports the :focus pseudo-class, even in standards mode. I think your boss is just going to have to understand this can't be achieved without JavaScript for IE.

      Comment

      • mynkow
        New Member
        • Jul 2007
        • 37

        #4
        Thanks, the good news is that IE8 will support this :) But I think that MS will keep the tradition all IE versions to be hell for developers :P

        Comment

        Working...