Field validation in Javascript

+1 Rezin Mgode · January 10, 2015
Hi Burcky.

Am rezin,

I am working on an assignment in javascript form validation. My problem is that, i would like to validate data entry in a
numeric field. the number entered as a subscript should be compared to the assigned number and if the number entered is greater than the allocated number, it displays a message like "Marks obtained should not be greater than marks allocated". When this happens the cursor should go back to the field so that i enter the correct figure. then save.

Any help on how to achieve this will be highly appreciated.

Post a Reply


Oldest  Newest  Rating
0 Sochima Biereagu · January 10, 2015
Why dont you give an example so i can unstertand better
  • 1



A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.