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...

i am making a purchase sheet in html ,it contain names of
product(by selecting checkboxes),quantity(textbox) and
price(checbox), by using java script i am restricting the
user to prevent them to enter the wrong data ,so i made the
servlet were i am only able to prevent them to enter the
page in empty field , so my doubt is how do you prevent them
how to enter non numerical data in quantity field

Answer Posted / shivkumar

use isNumber() function to check whether entered data is non-
numerical ??
if it is then give an error

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

sample code to auto focusing the first field in a form

2452


How to encode and decode URL strings?

2283


write a code to generate pseudorandom numbes

2343


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

2239


code to detect availability of cookies

2165


snippet to prevent submission of form when certain/any validations got failed

1902


How to block double clicks

2097


how to transform XML Data into HTML

2358


Reading which Non-Character Key was pressed

2219


how to convert between arrays and strings

2755


code to create a new window

2169


program to show a progress bar

2600


Create a ViewState Property?

2689


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: