Skip to content

Instantly share code, notes, and snippets.

@Marak
Created June 9, 2010 08:44
Show Gist options
  • Select an option

  • Save Marak/431230 to your computer and use it in GitHub Desktop.

Select an option

Save Marak/431230 to your computer and use it in GitHub Desktop.
var d = $("#foo")[0].attributes;
for(var i = 0; i < d.length; i++) {
print(d.item(i).value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment