```
var ids = ["Device ID"]; var names = ["Device Name"]; $("td[aria-describedby=grid-table_name]").each(function(){ names.push($(this).html()); }); $("td[aria-describedby=grid-table_deviceNumber]").each(function(){ ids.push($(this).html()); }); var output = ""; for (var index = 0; index < ids.length; index++) { //output += names[index] + "\t" + ids[index] + "\n"; //original output += ids[index] + "\t" + names[index] + "\n"; //post September 2016 } console.log(output);
```