Stop relying of CSS hide/show attributes. Instead, only put needed elements in the DOM.
Attach a file by drag & drop or click to upload