You need to sign in to do that
Don't have an account?
Greg Finzer
How to get the id of a checkbox when clicked?
I have this lightning checkbox. How do I get the auraid of the checkbox that was clicked?
Here is the corresponding controller method:
<ui:inputCheckbox aura:id="{!element.GroupId}" value="{!element.Renovated}" click="{!c.handleCheckboxClick}" />
Here is the corresponding controller method:
handleCheckboxClick : function(component, event, helper) { }
Here is the corresponding controller method:
All Answers
The problem is that I do not know the id. That is what I am trying to get.
I cannot use this line since I do not know what the id is.
var checkCmp = cmp.find("checkbox");
Please see the below idea. I think you are also refering the same thing.Salesforce dosen't allow dynamic Id till now.
https://success.salesforce.com/ideaView?id=0873A000000E8fBQAS
Here is the corresponding controller method: