Skip to content

Instantly share code, notes, and snippets.

@ygmpkk
Forked from justjavac/getAddressList_QQ.js
Created October 15, 2013 08:40
Show Gist options
  • Save ygmpkk/6988538 to your computer and use it in GitHub Desktop.
Save ygmpkk/6988538 to your computer and use it in GitHub Desktop.
var ids = document.querySelectorAll(".member_id");
var names = document.querySelectorAll(".member_name");
var output = "", length = ids.length;
for(var i=0; i<length; i++){
output += ids[i].innerHTML.slice(1,-1) + ":" + names[i].innerHTML + "\n";
}
console.log(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment