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();
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
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
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
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"
});
Anything?
6 matches
Mail list logo