html - return index of element in form -
this easy can't manage index of table in form can see in
.
i have selected table want index following way :
iedoc.queryselectorall("td[width='100'][class='listmaincent'][rowspan='1'][colspan='1']")(2).parentnode.parentnode.parentnode.parentnode.parentnode.parentnode.parentnode
so can see, selected 1 of items.
so question is, how can gain index position of table in form ?
- use selector add name or id table.
iterate top level tables in form until table name/id found.
you have index.
be sure check overhead of such process.
Comments
Post a Comment