Mi spiace, esiste solo una soluzione indiretta:Originariamente inviato da dimoshake
dunque, esiste una soluzione?
Per applicarlo ad altre strutture devi modificare lo script ad hoc.codice:<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Pagina bianca</title> <script type="text/javascript"> var aTable; function astraiTabella () { aTable = Array.prototype.slice.call(document.querySelectorAll("#esempio tr")); for (var nRow = 0; nRow < aTable.length; nRow++) { aTable[nRow] = Array.prototype.slice.call(aTable[nRow].querySelectorAll("td")); } // Estraggo il contenuto della prima cella della seconda riga... alert(aTable[1][0].innerHTML); } onload = astraiTabella; </script> </head> <body> <table id="esempio"> <tr> <td> <div> Cella 0.1</p> </div> <div> Blabla</p> </div> </td> <td> <div> Cella 0.2</p> </div> </td> </tr> <tr> <td> <div> Cella 1.0</p> </div> <div> Blabla</p> </div> </td> <td> <div> Cella 1.1</p> </div> </td> </tr> <tr> <td> <div> Cella 2.0</p> </div> <div> Blabla</p> </div> </td> <td> <div> Cella 2.1</p> </div> </td> </tr> </table> </body> </html>![]()