Jump to content

Recommended Posts

Posted

I want to use embedded javascript to validate a field in my form, where the user will enter a number, i dont want it to have anything else other than numbers in that field.

 

ive looked at some examles but i cant seem to figure it out.

 

can sumene lease help me out?

Posted

Take a look at this -- it's relatively straight-forward. Just a matter of adding a "onkeyup" attribute to the input, and including a javascript function to check the value of the input. Basically, the function automatically checks that any characters entered are numbers only.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...