is not working within Template events

I have created a template name foo and bind some events like:{
     'submit #identity': function(event, template) {"methodName", function ( error,result) {
       if (error) {


I am not able to figure out why this method is working out side of this template events but its doesn’t work inside this template event block.

That looks like it should work. Are you sure your event is being run?

Yea, this should work. Just that we haven’t seen the template yet. Check for the id #identity and that you’re attaching the events to the right template. In this case, any element with attribute id=“identity” should be in the foo template.

There is a missing a single curly brace (}) on the line after }); (to close the function's BlockStatement) which would trigger a SyntaxError but otherwise this should work.