[jQuery] Finding DIVS with similar IDs

2008-09-17 Thread MACE
I have multiple DIVs with similar IDs: Test 1 Test 2 Test 15 Test 11 What is the syntax to hide all the DIVs that start with 'test'? This doesn't work: $("id*=test").hide(); also tried: $("id:contains('test')").hide();

[jQuery] Re: Finding DIVS with similar IDs

2008-09-18 Thread MACE
No problem. Thank you all for all your help... and quickly! On Sep 18, 6:03 am, MorningZ <[EMAIL PROTECTED]> wrote: > yeah, my mistake on my post, shouldn't have had "#" in it

[jQuery] Reset Validation with new rules

2008-09-18 Thread MACE
The problem: I have a form that changes its validation rules based on user input. I have tried: $("#form1").validate({rules:}); $("#form1").unbind("submit"); $("#form1").validate({rules:}); // Doesn't work... His there a better way to this? Can you remove all the rules and add new one

[jQuery] Re: Reset Validation with new rules

2008-09-19 Thread MACE
Sorry, I forgot to mention I'm using the JQuery/Validation plugin. Also, here is a working example of what I tried: http://www.centralwow.com/validate/validate.html

[jQuery] JQuery YAV plugin inputclasserror question

2008-09-19 Thread MACE
For the YAV plugin, can you use the option 'inputclasserror' by itself? $("#form1").yav({ inputclasserror : "fieldError" }); Do you need the 'errorMessage' option work this to work? $("#form1").yav({ errorMessage : "Errors are found" },{ inputclasserror : "fieldError" });

[jQuery] Re: Reset Validation with new rules

2008-09-23 Thread MACE
Anything?