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 encode and decode URL strings?
write a code that user can choose/alter Body Text Size
code to get the coordinates of a Click Event
sample code to auto focusing the first field in a form
code to create a new window
maximizing the main window
snippet to prevent submission of form when certain/any validations got failed
communication between main window and new windows
how to transform XML Data into HTML
function to combine two or more arrays
program to bring a window to the front
code to detect availability of cookies
how to convert between arrays and strings
how to pass data between pages using Cookies
create Drop-Down Navigation Menus