04 August 2008

Allow only floating point values in textbox

function isNumberPointKey(evt)
{
//alert(event.keyCode);
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48
or
charCode > 57) && charCode!=46 )
return false;
return true;
}

onkeypress="return isNumberPointKey(event

1 comment:

neo said...

hi i hv 2 forms and when i make change in one form it should affect the other form-- delegate is used 4 this.... can u get me a idea abt this