By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,514 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

How to highligh textbox?

P: 37
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?
May 23 '08 #1
Share this Question
Share on Google+
3 Replies


hsriat
Expert 100+
P: 1,654
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.
May 23 '08 #2

P: 32
poe
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.
May 23 '08 #3

P: 37
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
May 24 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.