Question
Accenture Solutions Pvt Ltd
IN
Last activity: 29 Nov 2021 3:40 EST
Disable Link on on-click using Java script
I have a question on handling java script code.
I have an LDAP login page where the user id is authenticated based on generating OTP. When an OTP is generated, user can see Resend OTP link.
If this ResendOTP link is clicked, the link should be disabled for next 60 seconds.
In order to disable the link, i have used SetTimeout function on the particular element id. and since on click of the link refreshes the web page, SetTimeout isn`t effeciently working.
Need your thoughts to disable the link on ON-CLICK.