-
9 Aug 2008 12:17 AM #1
enable/disable
enable/disable
Hi,
I need to understand the difference.
//This works in both explorer and in firefox
document.getElementById('submit').disabled = false;
//This does not work with neither explorer nor firefox
//I have tried all four variants
Ext.get('submit').disabled = false;
Ext.get('submit').disable = false;
Ext.get('submit').enable();
Ext.get('submit').enable = true
Greatful for some advice what I am doing wrong.
-
9 Aug 2008 2:09 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
Ext.get() returns an Ext.Element, not a HTML node!
Use:
orCode:Ext.get('submit').dom.disabled = false;
Code:Ext.getDom('submit').disabled = false;


Reply With Quote