Skip to content

Instantly share code, notes, and snippets.

@joestelmach
Created February 2, 2011 02:50
Show Gist options
  • Save joestelmach/807165 to your computer and use it in GitHub Desktop.
Save joestelmach/807165 to your computer and use it in GitHub Desktop.
/*
<table>
<tr>
<td class='data'><span>foo</span></td>
<td class='data'><span>bar</span></td>
</tr>
</table>
*/
var table = $el('table',
$el('tr', [
$el('td', {className : 'data'},
$el('span', 'foo')),
$el('td', {className : 'data'},
$el('span', 'bar'))
])
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment