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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -