The following code works for firefox, but shows error in IE.
document.getElementById('zip_container').style.borderLeft = '1px solid #D9D9D9;';
where zip_container is a div.
Can anyone suggest anything on this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
invalid value :
when you modify style attributes using style.something, “
;” is not necessarybut if you are modify it this way:
document.getElementById('zip_container').style.cssText += ";border-left:1px solid #D9D9D9;";“
;” can’t be lost. So the correct way is:document.getElementById('zip_container').style.borderLeft = '1px solid #D9D9D9';