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...

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.

thanks Thirusha for the idea...

now i get logic..

pleasure, glad to help

thank u akoglu.e

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.