css - javascript syntax mismatch in firefox , IE -
The following code works for Firefox but shows an error in IE.
document.getElementById ('Zip_container'). Style.borderLeft = '1px solid #D9D9D9;'; Where zip_container is a div. Can any suggestion on this
Invalid value : A document.getElementById ('zip_container'). Style.borderLeft = '1px solid #D9D9D9;'; When you modify style attributes using style. Some, "; " is not required but if you modify it like this:
document.getElementById ('zip_container') . Style.cssText + = "border-left: 1px solid #d9d9d9;"; "; " can not be lost if corrected: document.getElementById ('zip_container'). Style.borderLeft = '1px solid #D9D9D9';
Comments
Post a Comment