Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6048543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:28:30+00:00 2026-05-23T07:28:30+00:00

I am new to ExtJs(using EXT js 4 ), I am trying out simple

  • 0

I am new to ExtJs(using EXT js 4 ), I am trying out simple code.

I have a submit button which is set disabled by default

buttons: [{
    text: 'Submit',
    id:'submit',
    disabled:true  
}]

I want to enable the button based on certain 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 above 2 option. Which did not worked for me.
Can anyone help me out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:28:31+00:00Added an answer on May 23, 2026 at 7:28 am

    Use this:

    Ext.getCmp('submit').enable();
    

    When you use Ext.getCmp(), it gives you the component which has a number of component methods to use. If you use Ext.get(), it gives you the element with a number of dom element modification functions. So, its always better to test in firebug console for any of these to know what methods are there.

    console.log(Ext.getCmp('submit'));
    
    console.log(Ext.get('submit'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using extjs and just trying to solve a simple problem: I have a
I'm using ExtJS to create a formPanel: new Ext.FormPanel({ labelAlign: 'top', title: 'Loading Contact...',
// Using extjs 3.x var box = new Ext.Textfield { /* textField configuration */
I was trying to render a simple piechart using ExtJs 3.0 but could not.
I am creating a new ExtJS widget using Ext.view.View. The template for this view
I have a border layout set on a widget using Ext-GWT. Is there a
I am using extjs grid, and I have a jQuery timer, which will call
I have a problem with a Ext.Grid.EditorGridPanel, I am currently using ExtJS 2.3.0, that
I'm trying to learn the new MVC architecture that ExtJS 4 is using and
I'm writing all my components in ExtJS's new MVC fashion using Ext.define() . I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.