<script type="text/javascript"> function numericdecneg(evt) { evt = (evt) ? evt : window.event; var charcode = (evt.which) ? evt.which : evt.keyCode; if (charcode != 109 && charcode > 31 && (charcode < 48 || charcode > 57) && charcode != 46) { return false; } return true; } </script>
<input type="number" ... />
<input type="number" name="quantity" min="-9999" max="-1">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)