arturadib/agility — Issue #64: submit event for forms does not fire
Author: docyes
Created: 2011-12-17 08:19:09+00:00
State: open

I can't seem to setup an event listener for the submit event on a form. See example below...

var searchbar = $$({
model:{},
view:{
format:
'

\
\
\

',
style:
'& input[type="search"] {width:70%;} \
& input[type="submit"] {width: 10%;}'
},
controller:{
'submit form': function(){
alert(16);
}
}
});
$$.document.append(searchbar);