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
smita bhargavasmita bhargava 

How to disable href

In the lightning component I have following piece of code
<aura:iteration items="{!'v.someValues.myVal}" var="rule" indexVar="indx">

<a href="javascript:void(0)" id="anchor" tabIndex="-1" onclick="doLogic">{!rule.RuleId}<a>

</aura:iteration>

The above iteration returns as follows which are hyperlinks.
NOC1
NOC2
NOC3
NOC4
NOC5


My requirement is twhen I click on the Hyperlink "NOC1", I want to disable it and all other hyperlinks below it.

please let me know how to do.

smita
AbhinavAbhinav (Salesforce Developers) 
Chek suggestion on below link:

https://salesforce.stackexchange.com/questions/354481/disable-href-in-lignting-component-controller-or-helper

Thanks!