hi all,
pls analyse the code .. temme why it is used so ... is there any alternate method to validate whether it is a numeric....if so temme.....
pls analyse the code .. temme why it is used so ... is there any alternate method to validate whether it is a numeric....if so temme.....
Code:
function isnumeric(e,obj) { var keynum; if(window.event) { keynum=e.keyCode; } else if(e.which) { keynum=e.which; } return((keynum >= 48 && keynum <= 57) ||keynum==189|| keynum==46 ||(keynum>=32 && keynum<=40) || keynum == 8 || keynum==9 ||(keynum >=96 && keynum <=105)); }
Comment