When we paste the code, it calls 2 times the function typingDone which cause unwanted result. Ex: calling an ajax function in typingDone to validate the OTP.
Originally posted by smartland007 August 28, 2023
Actually to clear the OTP (ex: when the code is false), we need to do the following, where each input have the class otp-content:
$('.otp-content').html("");
I was assuming to use the following:
$('#otp_target').otpdesigner('set', "");
Is it possible to have a dedicated event to clear/empty the code ?