PDA

View Full Version : How to fire an event of an input button?



sencha_liudong
16 Feb 2011, 3:53 AM
code:
items:[
{html:'<input type="button" value="login"/>'}
]
how to get the button object and how to fire it?
i want to add a click function.
if i write like <input type="button" value="login" onlick="alert('test');"/>
there are errors.