You need to sign in to do that
Don't have an account?

how can get id value which i am passing to toggle ?
Hi ,
i have one requirement i need to get id value which i passing to pass
<lightning:input type="toggle" name="{!Names.key}" onchange="{!c.selectChange}" messageToggleActive="On" messageToggleInactive="Off" checked ="{!Names}" style="float:right;text-align: center;" ariaLabel="Enhance Goals Permission"/>
i am trying like below
var fieldName1 = event.getSource().get("v.name");
help me any one on this
you can take reference from this may be it will helps you:
Link
https://stackoverflow.com/questions/58110739/how-to-get-id-and-value-of-all-slide-toggle-elements
If you find your Solution then mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi