You need to sign in to do that
Don't have an account?
d.tejdeep@nicomatic.in
I cant able to see false alert by deselecting the checkbox
Cant able to get false condition ui:inputcheckbox ?
<ui:inputcheckbox value="{!v.BatchInstance.Discount__c}" aura:id="disc" change="{!c.discountvalidation}"/> discountvalidation : function(component, event, helper){ var disc = component.find("disc"); var discvalue = disc.get("v.value"); if(discvalue=true){ alert("true"); } if(discvalue=false){ alert("false"); }
I cant able to see false alert by deselecting the checkbox
use below code :
Thanks let us know if it helps you and close your query with best answer if you got your answer
http://sfdcMonkey.com