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

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

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

php - Cloud9 cloud IDE and CakePHP -