'jQuery plugin masked input is working weirdly with Knack app
I have been trying to implement a mask on form fields (especially phone number) but jQuery plugin called “Maskedinput” is behaving weirdly.
When I try to give definitions it is not working but without definitions it is somehow working but with bugs.
This is my current code, I would like to have the mask that is indicated on the placeholder, but I need to give descriptions. Also, “*” is not working to define an alphanumeric value.
$(document).on('knack-scene-render.any ', function(event, scene) {
$("#field_6").mask("+998 (99) 999 99 99", {placeholder: "+998 (##) ### ## ##"});
$("#field_7").mask("t.me/********?*********", {placeholder: "t.me/username"});
});
Below is the link to that application: https://globalconnect.knack.com/portal#application/
Is there any common issue with jQuery plugins on Knack or am I doing something wrong? The thing is, the plugin is working perfectly on different JavaScript environments.
I appreciate any help. Thank you so much
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
