It shows how to get the age cell from a table where the row is identified by another cell containing the firstname of a person.
How can i do the same if i need to use both the firstname and the lastname to idenitify the row?
I the following example the outer divs represent rows and the inner divs represents cells.
Each row has three cells: firstname, lastname and age.
How can i identify the age-cell of the row where firstname is Thomas and lastname is Bach?
Code: Select all
<html>
<body>
<div>
<div><span>Thomas</span></div>
<div><span>Wallace</span></div>
<div><span>31</span></div>
</div>
<div>
<div><span>Thomas</span></div> <!-- firstname is Thomas -->
<div><span>Bach</span></div> <!-- lastname is Bach -->
<div><span>42</span></div> <!-- this is the cell I want to identify -->
</div>
<div>
<div><span>Nicole</span></div>
<div><span>Bach</span></div>
<div><span>35</span></div>
</div>
</body>
</html>