function ValidateInteger(Obj) { if(Obj.toString().indexOf(".") > -1) {alert('Kindly enter amount in multiples of 1.'); return false;} if(parseInt(Obj)==NaN) {alert('Invalid Amount.'); return false;} return true; }
Reference: Muthukumar (http://nadarmuthukumar.blogspot.in/)
0 comments:
Post a Comment