Skip to content

Instantly share code, notes, and snippets.

@tanraya
Created February 8, 2012 12:12
Show Gist options
  • Save tanraya/1768621 to your computer and use it in GitHub Desktop.
Save tanraya/1768621 to your computer and use it in GitHub Desktop.
var table = new Element('table');
var tbody = new Element('tbody').inject(table)
var tr = new Element('tr').inject(tbody);
new Element('td').set('text', 'some').inject(tr)
table.inject(document.body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment