-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation crashes for mutiple select. #18
Comments
I'm unable to reproduce this. What jQuery and browser versions are you using? |
Hi Joe, I'm using Mozilla Firefox v20.0 and jQuery-1.9.1. Also, when one or more selections are made, However, when I add the following code to the validate_required() if ($("[name="" + attribute + ""]").attr('multiple') === 'multiple') { Thanks for the excellent support, Douwe. On 2013-04-09 08:40, Joe Wallace wrote:
|
Thanks for bringing this issue to my attention. I just pushed a fix. It's a little bit different than what you proposed, but you definitely set me down the path. |
Hi Joe, I like your programming style. Elegant and compact. There's one minor issue with your latest code. When I add the following code at the start of the validate_match() if (value === null) { Thanks, Douwe. On 2013-04-11 08:52, Joe Wallace wrote:
|
Validation crashes when it is possible to make multiple selections using a 'select' element. I have to add the following code in the validate_required() function to make it work.
if ($("[name="" + attribute + ""]").attr('multiple') === 'multiple') {
return $("[name="" + attribute + ""] option:selected").size() > 0;
}
The text was updated successfully, but these errors were encountered: