Use the following code for allowing only numbers while entering in text box
            var Elem=$("#"+ElemId);
            Elem.on('input propertychange', function () {
                Elem.val(Elem.val().replace(/[^0-9]/g, ''));
            });
0 comments:
Post a Comment