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
advance the focus to next consecutive fields when Enter Key is pressed
code to keep a page Out of the browser history
code to sorting an array of objects
code to set the main window's size
determine which Element received an Event
sample code to auto focusing the first field in a form
Create a ViewState Property?
how to pass data between pages using Cookies
function to combine two or more arrays
code to positioning of window in certain dimensions
how to create Expandable and Collapsible Menus
how to copy form data between different pages
program to show a progress bar
how to Auto Scroll the page
how to convert between arrays and strings