I figured something out.. in de js file of the validator is the next
section:
formatAndAdd: function( element, rule ) {
var message = this.defaultMessage( element, rule.method
),
theregex = /\$?\{(\d+)\}/g;
if ( typeo
Didnt i try that... :P.
Thanks a lot for soulution and quick response!! That did a exactly
what i wanted.
On 19 joulu, 22:25, Andre Polykanine wrote:
> Hello Antti and all,
>
> You just don't need to nestmessages, they should be
> overwritten:
>
> input
Its depending on your requirement, normally it should on onblur event.
On Thu, Oct 22, 2009 at 10:27 AM, talasan.nichol...@gmail.com <
talasan.nichol...@gmail.com> wrote:
>
> Is this on submit or live? I don't see how I'd use that.
>
> On Oct 20, 10:41 pm, Bi Jing wrote:
> > You can set id attri
Err. This was directed towards the if and else JS.
I'm already using the jQuery validator; and I've been through the docs
and can't find anything that would really do what I want it to.
The label will change, but I also need another element to change [the
fields description]
So the example woul
Is this on submit or live? I don't see how I'd use that.
On Oct 20, 10:41 pm, Bi Jing wrote:
> You can set id attribute of element, e.g. username_desc
> And then using following script,
> if(success){
> $("#username_desc").html('default msg');}else{
>
> $("#username_desc").html('error msg');
>
Fantastic!!!
I got it working.. my first ever ajax request.. :P Thanks Jorn for
this great plugin.
For other readers, have your remote script return "true" or "false" -
no need for JSON.
Here's my working code.
rules:{
email: {
required: true,
email: true
The method has to return something else then undefined. You can use the
remote-method instead, it allows you to do remote checks:
http://docs.jquery.com/Plugins/Validation/Methods/remote
Jörn
On Wed, Oct 21, 2009 at 2:12 PM, Samuurai wrote:
>
> Hi,
>
> This is my first attempt at using addMetho
This works for me.
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Vary simple if you take the time to read docs.
/jon
On Oct 21, 5:41 am, Bi Jing wrote:
> You can set id attribute of element, e.g. username_desc
> And then using following script,
> if(success){
> $("#username_d
You can set id attribute of element, e.g. username_desc
And then using following script,
if(success){
$("#username_desc").html('default msg');
}else{
$("#username_desc").html('error msg');
}
Or you can add a new used to show error message, toggle it between
default on your validation result.
B
I've encountered a similar problem with something I'm doing. Current project
is using asp.net 2 webforms which is a pain but that's the boundaries of
this project.
Context: I have a Gridview which is databound with some html buttons and
then these buttons are wired up in jquery so that when cli
Try this link:
http://stackoverflow.com/questions/786332/jquery-validation-not-working-in-thickbox-display-ajax-call
Also you could just post the question on StackOverFlow.com There are lots of
jQuery experts to help and the response time is awsome.
--Phill
Mattycrocks wrote:
>
> I've encoun
You've got a script error on submit. Set debug:true to stop the submit
and look at the error.
Jörn
On Tue, Sep 1, 2009 at 3:45 PM,
jake.d.hol...@googlemail.com wrote:
>
> Hi Guys,
>
> I've put together a pretty simple competition script - it's commented
> out below and you can find the demo at
You need to reverse the order of sourcing the javascript files.
Put the jquery 1.3.2.js file before the validate.js.
-Anoop
On 8/27/09, Edgar Méndez. wrote:
>
> I'm trying to use the Jquery Validation plugin on aspnet mvc
> fframework but it doesn't work, when I open the firebug console it
> di
try create this method
jQuery.validator.addMethod("notNumber", function(value, element, param) {
var reg = /[0-9]/;
if(reg.test(value)){
return false;
}else{
return true
wow thanks it really worked now
the element param is kind of useless right? i wonder why it doesn't
work :)
anyway huge thanks to Jules
On Jul 23, 12:05 pm, Jules wrote:
> Your code should have been:
>
> $.validator.addMethod('myEqual', function (value, element, param)
> {
> retu
Your code should have been:
$.validator.addMethod('myEqual', function (value, element, param)
{
return value >= $(param).val(); // this works know
}, 'Please enter a greater year!');
On Jul 23, 12:21 pm, Erwin Purnomo wrote:
> Hello all
>
> I have added a method on jQuery
The validation is only triggered during submit event which is fine to
me. I don't like interactive validation as it creates distraction to
the users.
$("form").validate(
{
errorLabelContainer: "#errMsg",
wrapper: "li"
});
Just before the , theres the DIV that contains the error
messages.
There are errors in your enquiry submission, please see below
for details.
Please enter your first
name
Please enter your last
name
Please provide either an
email address, home phone or mobile for us to get in
On 5 jun, 12:11, talisien wrote:
> I'm having some troubles with passing variables to jQuery.format
>
> I have a script (php) that's checks if the domain part exists. If not
> it will show an message
>
> The following code works #1
>
> It split an email address and assigns the domain name to th
Hi Bob,
Its working fine..
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml"; >
Untitled Page
$(document).ready(function() {
$('#new_blog_post').validate({
rules: {
"blog_post[title]": "required",
A testpage would help. Can't see anything wrong with that code.
Jörn
On Tue, May 26, 2009 at 4:13 PM, Bob O wrote:
>
> So it seems im still having some issues..
>
> this is my html
>
>
>
> Title
>
>
>
>
> Body
>
> cols="28"/>
>
>
> Author
>
>
>
>
> Permalink
> A hyphen separated t
So it seems im still having some issues..
this is my html
Title
Body
Author
Permalink
A hyphen separated title for URL's e.g. my-
title
and this is my js placed after the jQuery and jquery.validate scripts.
$(document).ready(function() {
$('#new_blog_post').validate({
Man i combed the docs for a day, and i missed that link everytime..
Thanks Jorn.
On May 23, 3:02 pm, Jörn Zaefferer
wrote:
> You need to quote the full key, eg "name['name']": "required".
> Seehttp://docs.jquery.com/Plugins/Validation#Fields_with_complex_names_
>
> Jörn
>
> On Fri, May 22,
You need to quote the full key, eg "name['name']": "required". See
http://docs.jquery.com/Plugins/Validation#Fields_with_complex_names_.28brackets.2C_dots.29
Jörn
On Fri, May 22, 2009 at 10:15 PM, Bob O wrote:
>
> so as not to confuse..
>
> the name attribute looks like this
> name="name['name'
so as not to confuse..
the name attribute looks like this
name="name['name']" for the input field
and the js is
rules: {
name['name']: 'required'
}
i noticed typos in the above question.
On May 22, 12:36 pm, "bhan...@hcinsight.com"
wrote:
> Can anyone tell me how i can change which attri
Jorn - thanks for the responses - I resolved my problem - for the
record I had a mismatch between the versions of JQuery (1.3.2) and an
earlier (incompatible) version of the plugin. This was causing some
errors that I managed to track down with Firebug.
Downloaded the new version of the validatio
You can set debug:true for debugging. It will always prevent the form
submit, which is useful to look at errors that are thrown during
validation.
Jörn
On Wed, May 6, 2009 at 8:37 PM, BrendanC wrote:
>
> Jon - Good catch - however that was just a cut/paste problem - below
> is a new example tha
Jon - Good catch - however that was just a cut/paste problem - below
is a new example that does not work as expected - for some reason the
validation errors are ignored and the form is posted - not what I was
expecting. Is there something else I need to do to prevent form from
posting on errors? W
You define rules for a field "sender", but there is no input with name="sender".
Jörn
On Tue, May 5, 2009 at 7:28 PM, BrendanC wrote:
>
> JQuery newbie question re using validation plugin with Django newform.
> I have a simple email feedback contact django form that I wanted to
> enhance with s
Ok I got it done. It works. The problem was in my jquery code.
On May 4, 10:56 pm, ZedR wrote:
> I am validating form fields on blur event injquery. How do I validate
> more than 1 field in the controller action called from ajax with
> $params['form']. Code I m trying is:
>
> //ajax action in co
Did you ever find a solution? I'm facing the same problem.
Thanks,
--Phill
bookme wrote:
>
>
> Hi,
>
> Sorry to bother you but I am not able to solve this problem so posting
> in forum
>
> I am using two jquery plugin
> 1 Thickbox
> 2 Jquery validation
>
> Without thickbox validation is
Hi Roryreiff - thank you so much.
Someone helped me out the other day. Here is another version:
multiemail: function(value, element) {
if (this.optional(element)) // return true on optional
element
return true;
var emails = val
This requires the metadata plugin: class="{required:true,vinUS:true}"
This doesn't: class="required vinUS" minlength="2"
Jörn
On Thu, Apr 23, 2009 at 10:09 PM, Brad wrote:
>
> Thanks Jorn. Since I wrote I've been looking at the additional-
> methods.js to get ideas on how to write some custom
Thanks Jorn. Since I wrote I've been looking at the additional-
methods.js to get ideas on how to write some custom filter and found
this example:
class="{required:true,vinUS:true}"
Is that object syntax required when using custom filters as opposed to
simply
class="required vinUS"?
re: "where
The list applies to metadata as well. You can specify any method as an
attribute, and where there are no parameters needed, use a class
instead.
Jörn
On Thu, Apr 23, 2009 at 9:49 PM, Brad wrote:
>
> Are the options, usage and limitations for the jQuery Validation rules
> using metadata in marku
ml2009,
I seem to have it working within the confines of validating multiple
email addresses within the plugin's reg exp. I made the validation
check run only if the email length is greater than one...this takes
care of the case when a user has a comma after the last email address
(i.e., this pre
ml2009,
I seem to have it working within the confines of validating multiple
email addresses within the plugin's reg exp. I made the validation
check run only if the email length is greater than one...this takes
care of the case when a user has a comma after the last email address
(i.e., this pre
Thanks.
It gives me an error saying "element.attr is not a function"
What is wrong with this:
highlight: function(element, errorClass) {
if (element.attr("name") == "aupairLanguageList")
$("#multiSelect-aupairLanguageList-title").addClass("error");
},
unhighlight: function(elem
Use the highlight and unhighlight options for that.
Jörn
On Thu, Mar 26, 2009 at 3:21 PM, markstegg...@googlemail.com
wrote:
>
> Hello,
>
> Thanks for building this validation plugin, I like it. I have a
> question:
>
> The error class automatically gets added to the label with the same
> for="
Hi
You are not placing the # in front of the form id as jquery requires.
I do that all the time!!!
On Mar 24, 12:26 pm, Zach wrote:
> I've tried to get this to work for the past 4 hours and I'm stuck.
>
> I've got a master page with the following scripts added.
>
>
>
>
> this is the f
Custom method must return a result instantly, and don't support
callbacks as required for Ajax calls. For that, use the remote method:
http://docs.jquery.com/Plugins/Validation/Methods/remote#url
Jörn
On Tue, Mar 24, 2009 at 3:26 PM, Mr J wrote:
>
> dear all,
>
> i'm working with jQuery validati
Zach,
Try adding rules via the Validate method like so:
$(document).ready(function() {
$("#aspnetForm").validate({
rules: {
TitleField: {
minlength: 2
}
}
});
});
This worked f
Thank you!
--Carl.
On Mar 11, 7:54 am, Jörn Zaefferer
wrote:
> add if (this.optional(element)) return true; to the top. See any
> existing validation method for an example,
> orhttp://docs.jquery.com/Plugins/Validation/Validator/addMethod
>
> Jörn
>
> On Wed, Mar 11, 2009 at 12:43 PM, clorentz
add if (this.optional(element)) return true; to the top. See any
existing validation method for an example, or
http://docs.jquery.com/Plugins/Validation/Validator/addMethod
Jörn
On Wed, Mar 11, 2009 at 12:43 PM, clorentzen wrote:
>
> Hi --
>
> I've got a contact form here
>
> http://www.dianlof
Hi Stephan - thank you so much for your response.
I keep trying, but being unsuccessful. I tried valid = valid &&,
(valid=valid) &&, and (valid == valid) &&, but I get a syntax error
reference in Firebug. I even tried declaring
var valid = (value.length > 0); // make sure that value is not emp
Hi,
you have the same error as above.
Having a return statement in a for loop will evaluate the first element only.
If you want to validate all emails that's a logical AND conjunction of
all single email validations. So you have to have some and function in
your code as well.
Try something like:
Hello - wonder if you could help me. I tried another way to validate
multiple email addresses, but I still couldn't figure it out. on code
below, only the first email is validated. Any suggestions?
jQuery.validator.addMethod("multiemail", function(value, element,
param) {
if (this.optional(ele
trying to do the same type of validation, but it didn't work for me.
Could you please help?
multiemail: function(value, element) {
if (this.optional(element)) // return true on
optional element
return true;
var emai
trying to do the same type of validation, but it didn't work for me.
could you please help?
multiemail: function(value, element) {
if (this.optional(element)) // return true on optional element
return true;
var emails = value.split(',');
var valid = (value.length >
Hi,
Taking a second look on your code it's clear why only the first email
address is validated: you have a return statement in your for loop.
try something like:
email: function(value, element) {
if (this.optional(element)) // return true on optional element
(whatever this is for?)
return
Yeah, I actually have that fixed in the posted link, but thanks for
pointing that out. So, something else is at error now.
On Feb 17, 9:04 am, Stephan Veigl wrote:
> Hi
>
> is this just a copy & paste error, or a real syntax error? You have to
> quote the comma in your split command:
> var ema
Hi
is this just a copy & paste error, or a real syntax error? You have to
quote the comma in your split command:
var emails = value.split(",");
by(e)
Stephan
2009/2/17 roryreiff :
>
> So far, I have adapted this:
>
> email: function(value, element) {
>return this.opti
Rob,
By not working I mean that it now will not return an error message
when the first input is a well formed email. So, I could put in the
following (correctly formed email, incorrectly formed email + and
number of items) and it is validating that field, i.e. not producing
the error message. I w
On Feb 17, 10:53 am, roryreiff wrote:
> So far, I have adapted this:
>
[...]
> into this:
>
> email: function(value, element) {
> var emails = value.split(,);
> for(var emailAddress in emails)
> {
>
Allow me to show you what I have so far. It seems to validate base on
the first email, but none of the successive ones, in regards to the to
field: http://www.pomona.edu/asp/mailthis-redux.asp
On Feb 16, 4:53 pm, roryreiff wrote:
> So far, I have adapted this:
>
> email: function(value, elemen
So far, I have adapted this:
email: function(value, element) {
return this.optional(element) ||
/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?
\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\
$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)
I'm new to jQuery as well. In other languages, you would take the
string that holds all of the emails and do a 'split' on commas. This
should give you an array where each element is an individual email.
>From there, just validate each element.
How to do this in jQuery, someone more experienced tha
Hey Jörn thanks for the reply, good to know! I went with James
solution which is perfect for what i'm working with. Thanks again
guys.
On Feb 9, 9:07 am, James wrote:
> Since you wanted do submit by Ajax;
>
> $("#form-external-link").validate({
> rules: {
> exlink_url: {
>
Since you wanted do submit by Ajax;
$("#form-external-link").validate({
rules: {
exlink_url: {
required: true,
url: true
}
},
submitHandler: function(form) {
$.ajax(...);
}
});
Try this:
$("#form-external-link").validate({
rules: {
exlink_url: {
required: true,
url: true
}
},
submitHandler: function(form) {
alert('This will pop up only once as it should');
Hi James! Thanks for the quick reply. I'm still confused as to where I
should place my $(form).submit(..). so i'm not re-attaching additional
submit events?
What i'm doing basically is: 1. have Validate pass the form 2. submit
the form via ajax
The only thing is that the form is always being reus
Hmm.. code didn't display properly.
I wanted to say, every time you're doing
$(form).submit(...)
you're re-attaching an additional submit...
On Feb 8, 9:13 am, James wrote:
> Every time you're doing:
>
> you're re-attaching an additional submit event to the form, so it's
> executing it multipl
Every time you're doing:
you're re-attaching an additional submit event to the form, so it's
executing it multiple times every time you submit.
What is it you're trying to do? When you define submitHandler for
validate, you should be doing whatever you're doing in $(form).submit
() inside the sub
I was just using "java" as a nickname for "javascript"
Anyway thank you, it's what I suspected, at least now I'm sure!
Thanks
On Feb 3, 11:57 am, Jörn Zaefferer
wrote:
> First of all, it's JavaScript, not Java. Second, you always need
> serverside validation - anything on the clientside can be
First of all, it's JavaScript, not Java. Second, you always need
serverside validation - anything on the clientside can be disabled. An
attacker wouldn't even have to use a browser to submit the form.
In other words: Implement both. Serverside for security and data
integrity, clientside for a bet
Give this a try:
var validator = $("#myform").validate(options);
$.extend(validator.settings, moreOptions);
Also take a look at the rules method:
http://docs.jquery.com/Plugins/Validation/rules
Jörn
On Mon, Jan 12, 2009 at 10:49 PM, phil wrote:
>
> Just Pinging this thread to see if anyone has
Just Pinging this thread to see if anyone has a solution or
workaround...
On Jan 11, 8:06 pm, phil wrote:
> I'm wondering if it's possible to call the validate method multiple
> times toappendmoreoptionsto thevalidator.
> I haven't tried it, but it seems like it will overwrite previousoptions.
>
It appears that you are confusing "display: none" with "type="hidden"
they are two totally different controls
if you have
and you set it to "display: none" when the checkbox is checked... for
instance, saying $("#Name1").hide()
then the selector [...@type=hidden] won't find that because
if you are trying to assign an id to an element that's already part of
the dom you need to be sure that you use a selector that is specific
to only that element and add the id attribute with .attr
('id','error').
As far as showing and hiding passwords, you should just be able to
change the type a
Are you using the latest release? Adding messages via rules() has been
added only recently.
Otherwise I'd need a testpage to look at.
Jörn
On Wed, Dec 17, 2008 at 9:09 PM, kayode81un...@gmail.com
wrote:
>
> My Jquery validator refuses to show the correct error message but
> rather the default e
The validator plugin needs a unique name attribute for every field.
Otherwise it will only validate the first occurrence of the name.
So you would need something like:
And so on.
-- Caleb
On Sun, Dec 14, 2008 at 21:02, Adwin Wijaya wrote:
>
> I am using jquery validation from bassistanc
Metadata is read only once, then cached. In this case, you should use
the rules method to update:
http://docs.jquery.com/Plugins/Validation/rules
Jörn
On Tue, Dec 9, 2008 at 11:04 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> I have javascript code that alters the values inside the valida
Usually via ignore: ":disabled".
Jörn
On Wed, Dec 3, 2008 at 5:29 PM, Jan Limpens <[EMAIL PROTECTED]> wrote:
>
> How can I tell the bassistence validator to ignore disabled inputs?
>
> I have ui.tabs, and only the selected tab's controls are enabled.
> I want validation to fire only at them.
>
>
Can you provide a testpage?
Jörn
On Mon, Dec 1, 2008 at 2:47 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hey guys,
> i read about that trailing comma error in several other posts, but i
> just can't fix that problem. IE7 still submits the form even if the
> required fields are empty.
>
>
Hi, my name is Leandro.
Take a look on my site, i used a plugin, jquery validate a form and I
belive it's possible to combinate with effects. However, visit the
site of the plugin's developer, he can help you more.
my site: http://leandromedeiros.com
plugin: http://bassistance.de/jquery-plugins/
Animations currently aren't supported, and while on the roadmap,
nothing that will land in the near future.
Jörn
On Wed, Nov 19, 2008 at 2:33 PM, raj <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> JQuery validations is very good work.
>
> i need how to display the error messages using effects(like fadein
Would using resetForm() help me in any way?
On Nov 6, 3:11 pm, kedr <[EMAIL PROTECTED]> wrote:
> I have a form that is split into 3 different tabs. You can only move
> to the next tab if the part of the form on the current tab is valid. I
> have 3 separate validator code sections each with their
You need to use a different class for that, as the errorClass is used
to find the actual "error label" that displays the error message.
Jörn
On Wed, Nov 5, 2008 at 9:04 PM, kedr <[EMAIL PROTECTED]> wrote:
>
> my js is as follows:
>
> var validator = $('#myForm').validate({
>
Is the script included in the ajaxLogin.htm file executed? Use
logging, eg. via Firebug and console.log() to ensure that.
Also posting a testpage will help.
Jörn
On Wed, Oct 15, 2008 at 5:35 PM, bookme <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Sorry to bother you but I am not able to solve this pro
Thanks Eric !!
There is two files ajaxLogin.htm and second is index.html
ajaxLogin.htm :
$(document).ready(function() {
// validate signup form on keyup and submit
var validator = $("#signupform").validate({
rules: {
password: {
oops. forgot link to Validation documentation:
http://docs.jquery.com/Plugins/Validation/Methods/equalTo
On Oct 13, 2:08 pm, Eric <[EMAIL PROTECTED]> wrote:
> As described in this section of the Validation documentation,
> 'equalTo:' takes an expression which relates to another element, and
> i
As described in this section of the Validation documentation,
'equalTo:' takes an expression which relates to another element, and
it goes inside the 'rules:' object in the options.
You seem to be describing the messages below. Where is your code that
defines the rules?
May I recommend posting y
Hi Eric!
"data[User][password]": {
required: "Provide a password",
rangelength: jQuery.format("Enter at least {0}
characters")
},
"data[User][password2]": {
Thanks a lot to u jorn.
I am facing one more problem.
Below validation is working without thickbox plugin but when I used it
in thickbox it's not working ?
I think equalTo function is not working in thickbox?
"data[User][password2]": {
required: "Repeat your pas
Plugins sometimes conflict. One of the mark of a good plugin is a
minimum of conflicts. Also, the tricks we sometimes have to play on
the DOM can interact in non-intuitive ways.
Can you please describe in more detail the problem that you're having?
You may also try to use other plugins, such as
See
http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29
Jörn
On Sun, Oct 12, 2008 at 4:49 PM, bookme <[EMAIL PROTECTED]> wrote:
>
> Hi, I am using Jquery plugin for client side validation. But due to a
> filedname I am facing a problem.
>
> Exampl
Done:
http://jqueryjs.googlecode.com/svn/trunk/plugins/validate/localization/messages_it.js
Jörn
2008/10/5 Jörn Zaefferer <[EMAIL PROTECTED]>:
> Could you sent that as file js file to me?
>
> Thanks
> Jörn
>
> On Sun, Oct 5, 2008 at 1:58 PM, caruso_g <[EMAIL PROTECTED]> wrote:
>>
>> Thanks a lot
Could you sent that as file js file to me?
Thanks
Jörn
On Sun, Oct 5, 2008 at 1:58 PM, caruso_g <[EMAIL PROTECTED]> wrote:
>
> Thanks a lot for your translation, just some typos/errata:
>
>email: "Inserisci un indirizzo mail valido.",
> should be
>email: "Inserisci un indirizzo em
Thanks a lot for your translation, just some typos/errata:
email: "Inserisci un indirizzo mail valido.",
should be
email: "Inserisci un indirizzo email valido.",
number: "Inserisci un numero valida.",
should be
number: "Inserisci un numero valido.",
equa
Aah! *Slaps forehead* I found the problem! I was creating the
validation rules and messages by referring to the id's of the form
fields, while I should just reference their names! Everything's
working now, thanks for your time.
Jeroen
On 2 okt, 03:24, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
Could you reduce your non-working testpage to just one non-working
element? I still can't see the issue. The validation seems to work
just fine.
Jörn
On Wed, Oct 1, 2008 at 11:57 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote:
>
> Ok, I've further debugged this, trying to find the exact circumstanc
Ok, I've further debugged this, trying to find the exact circumstances
in which the validator doesn't work. Now I noticed that the values of
the name and id attributes of input fields aren't the same. I've
created a fixed version:
http://lab.jeroencoumans.nl/register/index-fixed-name.html
And no
Drupal generates input fields with an id like "edit-profile-name". The
jQuery validator plugin seems to ignore those fields completely, at
least on the form at http://lab.jeroencoumans.nl/register/ (which is
the generated HTML from a custom Drupal registration form). Quoting
the id when referencin
Could you summarize the problem again? I looked at the testpage and
couldn't see anything wrong with it.
Jörn
On Tue, Sep 30, 2008 at 6:16 PM, Jeroen Coumans <[EMAIL PROTECTED]> wrote:
>
> Could it have something to do with the fact that each id starts with
> "edit-"? When I try it with manually
Could you post a testpage?
Jörn
On Wed, Oct 1, 2008 at 8:30 AM, prakash matte <[EMAIL PROTECTED]> wrote:
>
> When i press the submit button of a form, it is showing the
> corresponding error message by the side of the text field. But when i
> press the submit button again, the error message is g
Could it have something to do with the fact that each id starts with
"edit-"? When I try it with manually created markup, changing or
removing the dashes doesn't help, but removing the "edit-" part does.
Is there a workaround possible?
Thanks,
Jeroen
On 29 sep, 00:06, Jeroen Coumans <[EMAIL PRO
Disable the event handling and add manual validation to the username field:
$(...).validate({
onkeyup: false,
onfocusout: false
});
$("#username").blur(function() {
$(this).valid();
});
Jörn
2008/9/18 Jacky <[EMAIL PROTECTED]>:
> Hi all,
> Some question on the validation plugin.
> Say ther
I apologize, I am incorrect. It has to do with trying to switch the
name attribute on radio buttons in IE. If you do so the plugin will
error. The reason I was trying to change the name attribute is due to
a problem in ASP.Net that will mangle the name when used in things
like repeaters/listviews.
Well, the documentation is a wiki, you're welcome to help improving
it. If you aren't sure about a change you make, notify me or others
about the change by posting to the list.
If you think its a bug in the plugin, please create a ticket:
http://dev.jquery.com/newticket (requires registration)
Jö
I figured out the problem.
In IE, if you have not set a class, even an empty class would suffice
(class=""), it will throw that error. I never saw this in the
documentation, which I feel could use some work as is to be clearer.
As such, I am not sure whether this is a known problem or coding
prob
1 - 100 of 154 matches
Mail list logo