0

hi..

im trying to validate a registeration form using javascript..

i successfully validated all the textbox individually by using onblur event...

but

when i click submit button, without entering text, or without even touching the textbox, the Form gets Submitted..

hw can i stop this... plz tell me a solution...

3
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by smvec
0

I cannot be sure(you have provided no code), but most probably the button that you are using to submit is of type submit, change the button to type button then and an onclick event and call your javascript function.

0

thanks Thirusha for the idea...

now i get logic..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.