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
code to keep a page Out of the browser history
how to create a Draggable element
Code to Block submission of form by pressing Enter Key
how to get the User's Time of Day
code to Hide and Show form controls
how to pass data between pages using Cookies
how to convert between arrays and strings
advance the focus to next consecutive fields when Enter Key is pressed
maximizing the main window
write a code that user can choose/alter Body Text Size
code to get the coordinates of a Click Event
determine which Element received an Event
how to Auto Scroll the page
program to show a progress bar
I have a doubt regarding including tags in a function. I have written a function in javascript in a html page. The function got called by clicking a button, i want to display the results in same html page by placing tags in the function. (this hmtl page is static page) Is this possible? example: