You need to sign in to do that
Don't have an account?
smita 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
<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
https://salesforce.stackexchange.com/questions/354481/disable-href-in-lignting-component-controller-or-helper
Thanks!