what is the data type for nodeList(i).text? if it is string, you need to usejavascript:selectwho('nodeList(i).text');