You need to sign in to do that
Don't have an account?
srikanth cheera
Picklist and Button
we will have a dropdown with the names here will be a Email button which will only become enabled once a dropdown value is selected.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Lightning comp:
<aura:component>
<ui:inputSelect class="slds-select" label="piklicst" value="{!v.objecFiledAPI}" onchange="{!c.enbleSubut}">
<aura:iteration items="{!v.PicklstValues}" var="item">
<option text="{!item.label}" value="{!item.value}" selected="{!item.selected}" />
</aura:iteration>
</ui:inputSelect>
<lightning:button aura:id="sbutId" label="Submit" variant="brand" class="button" disabled="true"/>
</aura:component>
Controller.js
enbleSubut : function(component, event, helper) {
var myButton = component.find("sbutId");
myButton.set('v.disabled', false);
}
I hope it will work.