View Full Version : Programmatically adding an onsubmit handler

24 Feb 2010, 8:21 PM
I have a regular HTML form (not ExtJS FromPanel) and before it is submitted, I would like my function to be called. I have tried:

Ext.get(formId).on('submit', function(){alert('here');});

But it doesn't work. Any help will be appreciated.


25 Feb 2010, 5:53 AM
Your likelyhood of getting answers is greater if you post in the correct forum.

25 Feb 2010, 5:53 AM
Moved to help