[jQuery] Re: $(ul li a).hover

2010-01-15 Thread d...@amystdesign.com
That depends upon which element has the ID or class that you're hoping to select, for instance, if you have: ul lia class=test-classList Item Text/a/li /ul or ul id=nav-menu liaList Item Text/a/li /ul Then you would want $(a.test-class).hover(...); or $(#nav-menu li a).hover(...);

[jQuery] Re: Only one of two fields is required. How to implement this logic in Jquery form validation?

2009-10-12 Thread d...@amystdesign.com
It will be confusing for someone filling out your form if you leave both fields available at the same time, instead... when the user enters text into one of the fields why don't you run an onChange or onKeyPress check to see if they've entered something and if so, disable/hide the other field

[jQuery] [validate] credit card number validation fix

2009-04-26 Thread d...@amystdesign.com
I was using an input mask plug-in on the form as well, which I found was causing the creditcard validator to fail (due to the spaces in the mask between the (4) character groups). This was fixed by moving line: 1017 to just above line: 1011 which tests for only characters [^0-9-]. This could