Click here to Skip to main content
15,915,611 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 6 text boxes accepting numbers and characters...I want to validate them on single button click....
eg

One of my text box is accepting number so it should accept number and another should accept characters....

I searched Google but I am not getting appropriate answer.. please let me know the solution...

Thanks.
Posted

1 solution

Call a single javascript function on the click of the submit button. This function should get each of the six textbox values using its id and then apply the validation logic to each of it.

Pretty straight forward I think. Please let me know if I understood your question properly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900