InnerHTML isn't a very good approach to any problem. You might want to rewrite that stuff using the DOM. You might find that things tend to work better.
I have a page with a number of fields available to input data. In the event the user has more data than is initially printed to the page, I have a button set up to add more fields to the page. It ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results