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

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:


code to get the coordinates of a Click Event

1747


code to create a new window

1756


Create a ViewState Property?

2294


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

1614


How to encode and decode URL strings?

1802


how to Auto Scroll the page

1635


Reading which Non-Character Key was pressed

1695


how to copy form data between different pages

1685


code to images to rollover

1862


how to transform XML Data into HTML

1904