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 keep a page Out of the browser history

1993


how to create a Draggable element

2358


Code to Block submission of form by pressing Enter Key

2456


how to get the User's Time of Day

2057


code to Hide and Show form controls

2240


how to pass data between pages using Cookies

2370


how to convert between arrays and strings

2693


advance the focus to next consecutive fields when Enter Key is pressed

2197


maximizing the main window

2015


write a code that user can choose/alter Body Text Size

1978


code to get the coordinates of a Click Event

2164


determine which Element received an Event

2287


how to Auto Scroll the page

1993


program to show a progress bar

2559


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: