Here i'm showing code which help you to make
a textbox which can only accept number.
This is helpful when you're making texbox which takes number as input
This solution works in both IE and Mozilla.
Numeric Textbox..
HTML Code :
a textbox which can only accept number.
This is helpful when you're making texbox which takes number as input
This solution works in both IE and Mozilla.
Numeric Textbox..
HTML Code :
<html>
<head >
<title>Girfa Numeric Textbox Demo</title>
<script language="javascript">
function validatenumber(evt)
{
var ch = (evt.which) ? evt.which : event.keyCode
if(ch > 31 && (ch < 48 || ch > 57))
return false;
return true;
}