error Unable to get property ‘display’ of undefined or null reference

First, I would recommend using getElementById() over document.alldocument.all has limited browser support. Then, bear in mind that style only gets inline style properties. So if you aren’t declaring style inline, you won’t get any results.

Let me know if your issues persist!

Leave a Comment