djc11
05-01-2007, 11:00 PM
I have a script that when called will toggle certain parts of a page (rows of a table to be specific) to hidden or unhidden. The problem is that when the page loads initially everything is visible. I want it to start out hidden.
I thought I could call a certain function that would do it and i could call window.onload=somefunction(); but the names and IDs for the tablerows are created dynamically. If I could search for a substring within the IDs or names while calling document.getElementsfromName(substring) that would work too. But I don't know how to do that :confused:
I'm sure this is simple but I am new. What else can I say.
I thought I could call a certain function that would do it and i could call window.onload=somefunction(); but the names and IDs for the tablerows are created dynamically. If I could search for a substring within the IDs or names while calling document.getElementsfromName(substring) that would work too. But I don't know how to do that :confused:
I'm sure this is simple but I am new. What else can I say.