1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    24
    Vote Rating
    0
    yade is on a distinguished road

      0  

    Question 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.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    97
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Ext.get() returns an Ext.Element, not a HTML node!

    Use:
    Code:
    Ext.get('submit').dom.disabled = false;
    or
    Code:
    Ext.getDom('submit').disabled = false;

Thread Participants: 1