The css style border is not working on select html form!

Hello
I am trying to add this styling css to the select option html form it works fine in FIREFOX and infortunately it didn't work in IE,
What i need is to make the border looks red when an error message is been displayed all i need is the css i can do the rest
document.getElementById(v).style.border="1px #FF0000 solid";

Open in new window

AudiomindsAsked:
Who is Participating?
 
PhatzerCommented:
In your case (to reiterate):
document.getElementById(v).style.border="1px solid #FF0000";

If that fails, try this:
document.getElementById(v).style.borderWidth="1px";
document.getElementById(v).style.borderColor="#FF0000";
document.getElementById(v).style.borderStyle="solid";

Now, if that fails, there's clearly some other underlying issue.
0
 
PhatzerCommented:
You may need to format the border value as so (example):

"1px solid #FFFFFF"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.