<td> <input id="P1HC" name="P1HC" type="number" min="0" max="54" size= "1" pattern="^[1-9]$" value="<?php echo $_SESSION["HC1"]; ?>"> </td>
onchange = "check(this)"
function check(that) { var StringInput = that.value; if (!/^[1-9]*$/g.test(StringInput)) { alert("You have entered invalid characters"); that.value = ""; that.focus(); return false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)