How would I add innerHTML to my expandable content script?
Hello, I found a script for innerHTML, which has a basic expand / collapse function. However, when it comes to table cells … it craps out. I know some form of toggle function needs to be added, something the lines of this
Code:
function toggle(id) { var tr = document.getElementById(id);
if (tr==null) { return; } var bExpand = tr.style.display == '';
tr.style.display = (bExpand ? 'none' : ''); }
function Toggle_h1()