function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravichandra sindheRavichandra sindhe 

i am unable to enable the button

<lightning:button variant="brand" label="Yes" title="Brand action" iconName="utility:check" iconPosition="left" disabled="true" aura:id="yesID" />

 var DisYes=cmp.find("v.yesID");

DisYes.set("v.disabled", false);  

Best Answer chosen by Ravichandra sindhe
Khan AnasKhan Anas (Salesforce Developers) 
Hi Ravichandra,

Greetings to you!

You are using aura:id to find the component. The find() function has one parameter, which is the local ID of a component within the markup.

You don't need value provider for this.
Replace this line of code: var DisYes=cmp.find("v.yesID"); 
To this: var DisYes=component.find('yesID');

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Ravichandra,

Greetings to you!

You are using aura:id to find the component. The find() function has one parameter, which is the local ID of a component within the markup.

You don't need value provider for this.
Replace this line of code: var DisYes=cmp.find("v.yesID"); 
To this: var DisYes=component.find('yesID');

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Ravichandra sindheRavichandra sindhe

Thanks brother

it worked 

below is teh code..i have used

var DisYes=cmp.find("yesID");