javascript - Load Element from Specific Div JS -
what need load second table (or tbody) element (un-named , has no class), div named megacontent. i'm planning have browser go page, load js , have display part only.
it not clear mean "load table". if you'd display table , don't know how reach since not have class or id, this:
var tbls = document.getelementbyid("megacontent").getelementsbytagname("table"); var tbl = tbls[0]; // [0] if desired table first table in div, [1] if second etc. tbl.style.display="block"; //or "table", or whatever you'd table.
hope helps.
Comments
Post a Comment