views:

1114

answers:

3

I need a very basic client-side form validation: whenever an invalid field is encountered display a standard windows dialog box, stop checking the remaining fields, and cancel submission.

What is the easiest way to do the above with jQuery?

A: 

How about alert("message")?

Think about your users though - this might not be the best user experience.

atc
I know how to popup a standard dialog box in js. What I need is a mechanism to add some validation rules with jQuery, and adjust this mechanism so that it popups an alert box whenever an invalid field is encountered.
SeasonedCoder
A: 

What's wrong with the standard jQuery validation plugin?

Steerpike
Nothing is wrong, I just don't know if it's capable of doing what I need.
SeasonedCoder
... and not sure if it's not an overkill for such a simple task
SeasonedCoder
+2  A: 
Tom Hubbard
Thanks for your suggestion? A link to a code snippet would be great ;)
SeasonedCoder
Aparently I don't know how to handle pre's very well. Sorry for that.
Tom Hubbard