I have a form that accepts credit card payments. I want 1 error message to show up if either the month or the year is not selected. Currently, I have class="required" on both select fields, so 2 error messages will show up.
I cant find much (helpful) documentation on the validation plugin, so if someone knows a way to do this, id appreciate a code snippet.
Well not familiar with that plug in, but you could use jquery to get the value of the select input using $("#ccxmonth").val(); You'd then add the if/then logic for if the value equals the starting value then throw the error. You'd compare it to the starting value because if it equals that you'd know it hasn't changed. This works as long as your starting value is nothing or "Select a date..." something like that, that isn't a real option.
Bookmarks