Thursday 15 May 2014

javascript - Extjs Form Validation before Submit -


itemprop = "text">

I have an express form for which some assumptions are required, such that I enter letters rather than numbers, before I . How can I make it before entering a number in the field?

Try this:

  onFormSubmit: function (BTN, event) {Var me = this, form = btn.up ('form'). GetForm (); If (form.isValid ()) {// submit form} other alerts ('invalid form'); }    

No comments:

Post a Comment