$('#otp_target').otpdesigner('set', ""); $('.otp-content').html(""); #5
Replies: 2 comments
-
|
yes it is possible thanks for bringing this to attention. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @smartland007 , We are glad to inform you that we have recently added a new feature to address the scenario you described. With the latest update, you can now use the 'clear' method to easily clear the OTP code directly from the plugin. This new method is designed to provide a more streamlined approach for clearing the OTP, making it more intuitive for developers like you. Instead of using the jQuery approach with This method will automatically clear the OTP input fields. Please feel free to let us know if you have any further questions or suggestions. Your feedback is invaluable in helping us improve the library. Thank you for using OTP-designer-jquery! Best regards, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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 ?
Beta Was this translation helpful? Give feedback.
All reactions