• Kishore K 43
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 7
    Replies
I have a iteration where i need to get input field values but I am unable to get the values
this is my cmp
 
<aura:iteration items="{!v.BundleProductWrapperItems}" var="vCWI" indexVar="index">
<ui:inputText class="slds-input" aura:id="idblp" value="{!vCWI.bundleListPrice}" change="{!c.calculateDefaultFees1}"  />
<ui:inputText class="slds-input" aura:id="idbm" value="{!vCWI.bundlemarginPrice}" change="{!c.calculateDefaultFees1}"  />
this is my JS
calculateDefaultFees1:function(component, event, helper){
        var BundleDiscount=component.find("idblp").get("v.value");
        var margin=component.find("idbm").get("v.value");

    }


 
I have a iteration where i need to get input field values but I am unable to get the values
this is my cmp
 
<aura:iteration items="{!v.BundleProductWrapperItems}" var="vCWI" indexVar="index">
<ui:inputText class="slds-input" aura:id="idblp" value="{!vCWI.bundleListPrice}" change="{!c.calculateDefaultFees1}"  />
<ui:inputText class="slds-input" aura:id="idbm" value="{!vCWI.bundlemarginPrice}" change="{!c.calculateDefaultFees1}"  />
this is my JS
calculateDefaultFees1:function(component, event, helper){
        var BundleDiscount=component.find("idblp").get("v.value");
        var margin=component.find("idbm").get("v.value");

    }