I was helping a fellow daniweb user with validation for restricting output to only numerics.
Then another user said even it validates a user could copy and paste into the cell.
Now that has been annoying me and I have been trying to figure out a way to prevent this.
Any Ideas? Thanks, Regards X
<html>
<head>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function Numbers(e) {
var cc = (e.which) ? e.which : event.keyCode;
if (cc > 47 && cc < 58) {
return true;
}
return false;
}
</SCRIPT>
</head>
<body>
<form method="">
<input type="text" name="jtitle" onKeyPress="return Numbers(this)"
size="57">
</body>
</html>