javascript - Unable to get property 'style' of undefined or null reference in IE 11 -


i getting error "unable property style of null reference" value of "a" comes null in ie 11. same code works fine in ie 8. element defined in div tag. not sure issue here.

document.getelementbyid("a").style.display = "block";  <div id="a" style="display:none"><img src="/images/ajax-loader.gif" /></div> 

you missing start " in attribute src

<img src="/images/ajax-loader.gif" /> 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -