Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

code to set the main window's size

2289


code to positioning of window in certain dimensions

2127


write a code to generate pseudorandom numbes

2367


maximizing the main window

2075


how to create a Custom Scrollbar

2545


code to create a new window

2186


code to images to rollover

2376


code to Hide and Show form controls

2311


how to convert between arrays and strings

2787


How to encode and decode URL strings?

2300


Create a ViewState Property?

2706


code to sorting an array of objects

2481


code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

2171


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: