Skip to content

Instantly share code, notes, and snippets.

@onozaty
Created December 31, 2012 16:14
Show Gist options
  • Save onozaty/4420965 to your computer and use it in GitHub Desktop.
Save onozaty/4420965 to your computer and use it in GitHub Desktop.
Ebi.createElement('#target')
.clear()
.style('border', 'solid 1px black')
.append('text1')
.start('span')
.append('red')
.style({
color: 'red',
fontWeight: 'bold'
})
.end()
.append('text2')
.start('p')
.append('button')
.start('input')
.property('className', 'class1')
.property({
type: 'button',
value: 'click'
})
.event(
'click',
function() { alert(1) }
)
.end()
.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment