PDA

View Full Version : Enable save button when i typing something in any fields.



jaisonjames
23 Jan 2011, 8:30 PM
Initially save button are disabled, when i typing something in any fields save button will be enable.

which event i use for this?

Any helpful function?

Thanks

jaisonjames
23 Jan 2011, 11:57 PM
This code working for my editor
Ext.onReady(function() {
var ed = new Ext.form.HtmlEditor();
ed.render(document.body);
ed.on('activate', function(){
Ext.fly(ed.getDoc()).on('keypress', function(){
console.log('foo');
});
});
});

Is it possible to call this function for all fields (Text fields, combo, etc.) ? how?

Thanks