html - return index of element in form -


this easy can't manage index of table in form can see in

this picture.

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 ?

  1. use selector add name or id table.
  2. iterate top level tables in form until table name/id found.

    you have index.

    be sure check overhead of such process.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -