jQuery – input only numbers

jQuery – input only numbers
Posted on април 29th, 2015

Hello guys, in this post I’ll show you how to restrict users to input only a numbers in given input field. It’s very simple solution that uses only a JavaScript / jquery -input only numbers. jquery – input only numbers <script> $(document).ready(function() { $(„#txtboxToFilter“).keydown(function (e) { if ($.inArray(e.keyCode, [46, 8, 9, 27, 13, 110, 190]) […]