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
Mohammed Sheriff 1Mohammed Sheriff 1 

how to get dynamic checkboxes values in lightning component

<aura:iteration items="{!v.img.content}" var="item" >
        <aura:if isTrue="{!item.guid!=null}">
       
        <aura:iteration items="{!item.images}" var="mapValue">
            <div class ="gallery">
                
             <img src= "{!v.base + mapValue.imageFile}" style="width:200px;height:200px;"/>
             <div class="desc">
             
            <ui:inputCheckbox aura:id="checkbox" name="Select" value ="{!mapValue.aspectRatio}" change="{!c.onCheck}"/>
            
      </div></div>
       </aura:iteration>
        </aura:if>
    </aura:iteration>
({
onCheck: function(cmp, evt) {
    var checkCmp = cmp.find("checkbox");
 alert(checkCmp.get("v.value"));      
        
 }
})
I am having issue with getting the value of the selected checkbox  and disabling the other checkboxes ,can someone please help me?
Thanks in advances.