input[type="text"]:focus{
border:solid 2px red;
}
If i was to use the above CSS rule it would not work in IE6,it just sort of disables the text control.I know the CSS bit can be taken care of using a conditional comment.Now I understand that to get the border to change in IE6 I have to use javascript or jQuery. My question is does a conditional comment similar to CSS exist for java script that binds the function that changes the border to the control only if the browser is IE6? Because modern browsers wont be needing this code.Hope I’m making some sense.
Just do the same thing: