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
sample code to auto focusing the first field in a form
How to encode and decode URL strings?
write a code to generate pseudorandom numbes
advance the focus to next consecutive fields when Enter Key is pressed
code to detect availability of cookies
snippet to prevent submission of form when certain/any validations got failed
How to block double clicks
how to transform XML Data into HTML
Reading which Non-Character Key was pressed
how to convert between arrays and strings
code to create a new window
program to show a progress bar
Create a ViewState Property?
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: