dear,
this is how i check the integer.
function update(field) {
if (!/^-?\+?\d+$/.test(field.value)) {
alert('Please enter an integer value.');
field.focus();
field.select();
<input name="hp" type="text" class="txtbox" size="10" maxlength="7" value="" onblur="update(this)">
this is how i check the integer.
function update(field) {
if (!/^-?\+?\d+$/.test(field.value)) {
alert('Please enter an integer value.');
field.focus();
field.select();
<input name="hp" type="text" class="txtbox" size="10" maxlength="7" value="" onblur="update(this)">
Comment