The value you return should be simply just "true" or "false". No HTML
or other stuff.
Not:
Remote Email Validator
true
or:
Remote Email Validator
false
Just:
true
or:
false
Notice the difference? :)
On Nov 2, 1:10 pm, Felix wrote:
> I have a static html page for testi
Well I have sorted the problem of the span when there is a sucess on
the input. I have added these two lines to the success method:
label.prev('form :input').addClass('valid');
$('form :input').filter('.valid').prev('label').find('span').hide();
My problem is now that when there is an on the inp
Thanks for that! I thought of doing something like that but it means
validating twice really so I was thinking that when the validation
call is done and the field, whatever it may be is correct then it
removes the span.
Problem is I dont get where the plugin adds the checked class I know
that it
how about
$('input[type=text]').keyup(function() {
if ($(this).val().length == 2) {
$(this).prev().find('span').empty();
}
});
On Jul 26, 10:36 am, Tuppers360 wrote:
> Hi there just wondering if I can get some help fr
Hi Jörn and others jquery forum readers,
So, is there anything wrong with the script? It still doesn't work
when email field is empty; fine with both validating the field when
there is input. onblur=alert($("#field").valid()) gives me 0 when
empty.
$(document).ready(function(){
$("#myform"
It still doesn't validate when the field is empty. Yes, I removed "
required: true, " in
$("#myform").validate({
rules: {
field: {
required: true,
email: true
}
}
});
The code is exactly the same just without the required: true, line as
belows.
And if I modified the to
Just remove the required-rule. All other methods include a check to
make a field optional when empty.
Jörn
On Sat, Apr 11, 2009 at 7:16 PM, NobitaNobi79 wrote:
>
> Hi, I am new to jQuery. I follow the example on
> http://docs.jquery.com/Plugins/Validation/Methods/email to add rules
> to a form
Looks like you copied too much demo code. Remove the
errorPlacement-option - you don't have a table layout.
Jörn
On Sat, Mar 28, 2009 at 5:09 PM, Smruti Pragyan Misra
wrote:
> Hi John,
> Thanks for ur reply.presently I am able to call validate()
> method for both the fields.But it
Hi John,
Thanks for ur reply.presently I am able to call validate()
method for both the fields.But it's not working with following code.
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="html" tagdir="/WEB-INF/tags/html"%>
<%@ taglib uri="http://ja
Same as for any other backend, eg. pick a validation plugin ala
http://docs.jquery.com/Plugins/Validation and follow the examples.
Come back with any specific questions.
Jörn
On Thu, Mar 26, 2009 at 8:01 PM, Lucky wrote:
>
> Hi,
> I am new to JQuery , can anyone tell me any example ,how
So I have the validation working with an AJAX submit thanks to all of
your help. To what extent are my options once the AJAX submit has
occurred? I am trying to redirect the user to a new page but only
after the validation has occurred and after the data has been uploaded
to the database. Is it po
Sweet, that's exactly what I was looking for! Thanks so much for the
help.
Tim
On Mar 12, 4:15 am, Jörn Zaefferer
wrote:
> Seehttp://jquery.bassistance.de/validate/demo/milk/
>
> Jörn
>
> On Wed, Mar 11, 2009 at 10:19 PM, MonkeyBall2010
>
>
>
> wrote:
>
> > I think I figured out the passing pa
See http://jquery.bassistance.de/validate/demo/milk/
Jörn
On Wed, Mar 11, 2009 at 10:19 PM, MonkeyBall2010
wrote:
>
> I think I figured out the passing part. If I am reading the
> documentation correctly it seems that the variable is retrieved in
> your PHP file via the $_GET["var"] command (do
I think I figured out the passing part. If I am reading the
documentation correctly it seems that the variable is retrieved in
your PHP file via the $_GET["var"] command (does this seem correct?).
Now I have the ability to check the database for availability but then
I'm stuck again. So the docume
Thanks! Now how do I use it?!?!
Hahah. Specifically, let's say I wanted to check on the availablility
of an email address. How do I pass that email address to my PHP
script? I couldn't seem to locate an example on the server side
script, only the JS.
Tim
On Mar 11, 3:11 am, Jörn Zaefferer
wrot
Dunno about Fancybox, but you can use the remote method to check the
username: http://docs.jquery.com/Plugins/Validation/Methods/remote
Jörn
On Tue, Mar 10, 2009 at 11:53 PM, MonkeyBall2010
wrote:
>
> You'll have to forgive me if this question sounds easy but I am fairly
> new to jQuery so I'm
Put your submit code into the submitHandler-callback. See this demo
for an example:
http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-demo.html
Jörn
On Fri, Dec 26, 2008 at 4:50 PM, avances wrote:
>
> I have two scripts, one validates the form and the other enters the
> data int
jmcervera schrieb:
Hello,
This is my first post in this group.
I am trying to use the
Form Validation Plugin with Ruby on Rails, and I can´t make it work.
It seems only working with forms using the 'get' action, not with
'post.
An this goes against the REST principles of the architecture I am
u
18 matches
Mail list logo