jQuery Mobile Form Not Validating

Go To StackoverFlow.com

0

Okay, at first I was having trouble with the form not making to my email address. I got that fixed with ajax, now I can't seem to get my validation working. Here is my code for the form, and the one css style being called for the validation: http://jsfiddle.net/gbaH7/

Here is what I'm trying to emulate: http://jsfiddle.net/na7bv/light/

2012-04-04 20:15
by NoName
The fiddle for your code is blank - servarevitas3 2012-04-04 20:18
@servarevitas3 Look no - NoName 2012-04-04 20:21
What fields are you trying to validate? The email validation is working in your example if you change the jQuery version to 1.6.4 (you had it on 1.2.6) - servarevitas3 2012-04-04 20:27
Its not being checked when I hit submit. That is my proble - NoName 2012-04-04 20:29


1

The "return false;" statement in your submit click event handler is blocking the validation.

2012-04-04 20:54
by servarevitas3
I can't believe I missed that. Thanks - NoName 2012-04-04 23:11
But now it still sends messages on every submit. Even when it isn't correctly filled out - NoName 2012-04-04 23:17
Ads