skip to Main Content

Regex operation Jquery

Am Just accepting only alphanumeric in Text field so i wrote this below code, This works fine but some times its not working when onlyAllowAlphanumeric called several time function onlyAllowAlphanumeric(obj) { obj.value = obj.value.replace(/[^a-zA-Z0-9 _]/g, ''); console.log(obj.value); }; $(document).on("keyup", "#fgCode,…

VIEW QUESTION
Back To Top
Search