diff --git a/application/views/addasset.php b/application/views/addasset.php index 0d28a9e4..d45b4e47 100644 --- a/application/views/addasset.php +++ b/application/views/addasset.php @@ -31,14 +31,23 @@ $(function() { }); - + function isNumberKey(evt) + { + var charCode = (evt.which) ? evt.which : evt.keyCode; + if (charCode != 46 && charCode > 31 + && (charCode < 48 || charCode > 57)) + return false; + + return true; + } +