Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

validate select lists doesn't work #453

Closed
deltamaxx opened this issue Dec 5, 2016 · 6 comments
Closed

validate select lists doesn't work #453

deltamaxx opened this issue Dec 5, 2016 · 6 comments

Comments

@deltamaxx
Copy link

validation of select lists is not working: the getValue() function for a properly selected element returns 'null'.

In function getValue the debugger shows:
$el.is('select') -> true
$el.val() -> 'element1'
+$el.val() ? $el.val() : null -> null

I'd say that the '+' shouldn't be there.

@cajobao
Copy link

cajobao commented Dec 5, 2016

I have the same problem. How to fix this?

@deltamaxx
Copy link
Author

I did some testing with the '+' removed. Seems to work.

@cajobao
Copy link

cajobao commented Dec 5, 2016

Can you post your the getValue function?

@1000hz
Copy link
Owner

1000hz commented Dec 5, 2016

This is related to the fix for #393 in #436. What version of jQuery are you using?

@cajobao
Copy link

cajobao commented Dec 5, 2016

My is Jquery 1.9.1

@1000hz
Copy link
Owner

1000hz commented Dec 5, 2016

Sorry about this. I'll push a fix.

@1000hz 1000hz closed this as completed in c5ba881 Dec 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants