I am new to ExtJs (using EXT js 4), I am trying simple code.
I have a submit button that is disabled by default.
buttons: [{ text: 'Submit', id:'submit', disabled:true }]
I want to enable a button based on a specific conditon. Something like
if (validation_status== "success") { //Enable the submit button //Ext.get('submit').dom.disabled = false; -- Not working //Ext.get('submit').enable(); -- Not working }
I tried the option above 2. Which did not work for me. Can anyone help me out?
PPB
source share