I was struggling with some of my JavaScript code that was working fine with all versions of Internet Explorer, but when i tested it with Chrome and Firefox, its behavior was not understandable.Actually, I was have written following JavaScript function which hide or display a row on the basis of some criteria.
function HideShowRow()
{
………Some logic here……
…………………………………row.style.display = ‘block’; //this line of code doesn’t work properly in Chrome and Firefox………………………………………
}
Although, it was a simple and basic JavaScript code snippet but creating problem and took around an hour to sort it out.
So, in order to resolve the issue, I just replace this line with the following line and everything starts working for Chrome and Firefox as well as different versions of Internet Explorer.
row.style.display = ”; //instead of block, use empty string.






Hi, after reading this awesome piece of writing i am as well delighted to share my familiarity here with colleagues.
Florida Web Design
Thank you for this very informative blog. You have made sense of this topic by writing unique, original content. It’s easy to read, engaging and smart. Blogs of this caliber are few and far between.
Bay Area Website Designs
thanks a lot ………:)