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 set the main window's size
code to positioning of window in certain dimensions
write a code to generate pseudorandom numbes
maximizing the main window
how to create a Custom Scrollbar
code to create a new window
code to images to rollover
code to Hide and Show form controls
how to convert between arrays and strings
How to encode and decode URL strings?
Create a ViewState Property?
code to sorting an array of objects
code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc
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: