validation code / function to allow only NUmbers in a text box
Answer Posted / satish reddy
function isNumeric(keyCode)
{
if(keyCode==16)
isShift = true;
return ((keyCode >= 48 && keyCode <= 57 || keyCode ==
8 ||
(keyCode >= 96 && keyCode <= 105)) && isShift
== false);
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
how to Auto Scroll the page
how to create a Custom Scrollbar
code to detect availability of cookies
how to create Expandable and Collapsible Menus
how to create an anonymous function
program to show a progress bar
sample code to auto focusing the first field in a form
Code to Block submission of form by pressing Enter Key
communication between main window and new windows
how to pass data between pages using Frames
code to positioning of window in certain dimensions
Reading which Non-Character Key was pressed
code to sorting an array of objects
write a code to generate pseudorandom numbes
code to create a new window