Hi,
I have a standard table that for each row has a link in the 1st cell. When you click this link a row with a cell is added after it and a table is inserted all using the DOM. I want to be able to hide the inserted table when I click the same link again, so I try to use document.getElementById( "id" ).style.display = "none". The DOM table has an id and I can test it using getAttribute("id") but it throws an error ("object req") when I try to use getElementById() function. Is there an alternative method that I should be using?
Thank you for any thoughts.
Matt
I have a standard table that for each row has a link in the 1st cell. When you click this link a row with a cell is added after it and a table is inserted all using the DOM. I want to be able to hide the inserted table when I click the same link again, so I try to use document.getElementById( "id" ).style.display = "none". The DOM table has an id and I can test it using getAttribute("id") but it throws an error ("object req") when I try to use getElementById() function. Is there an alternative method that I should be using?
Thank you for any thoughts.
Matt