html - Chrome Console get values from xpath array -


i'm using google chrome console array of elements have class of attrvalue. i'm using:

$x('//*[@class="attrvalue"]'); 

and output:

<td class="attrvalue">transway 1a</td>, <td class="attrvalue">northbound/westbound</td>, <td class="attrvalue">facing west</td> 

it works great array of elements trying array of values within elements. appreciated.

get text():

$x('//*[@class="attrvalue"]/text()'); 

Comments

Popular posts from this blog

angularjs - Showing an empty as first option in select tag -

qt - Change color of QGraphicsView rubber band -

php - Cloud9 cloud IDE and CakePHP -