Skip to content
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

Radio input can't accept numeric value #8

Open
arwin009 opened this issue Sep 6, 2016 · 3 comments
Open

Radio input can't accept numeric value #8

arwin009 opened this issue Sep 6, 2016 · 3 comments

Comments

@arwin009
Copy link

arwin009 commented Sep 6, 2016

This code is fine:
<input class="happy primary" type="radio" name="a1" value="a1" checked>

This code raise an exception:
<input class="happy primary" type="radio" name="a1" value="1" checked>
Exception:
happy.js:108 Uncaught SyntaxError: Failed to execute 'querySelector' on 'Document': '.happy-radio[data-name="a1"][data-value=1]' is not a valid selector.

@paveljanda
Copy link
Owner

What version of jQuery do you use? Its is fine by me.

@arwin009
Copy link
Author

arwin009 commented Sep 9, 2016

I use jQuery 3.1.0. jQuery is relevant for Happy library?

I got the same error even on clean project only with Happy library and using an example page from Happy library. Of course the error appears after I change radio input's value to numeric value="1" from value="a1" as I wrote above.

Except Chrome, I also tried Opera browser with the same error result.

@xhulav
Copy link

xhulav commented Sep 27, 2016

It's also broken on your example page. I have changed input value to numeric via chrome and error has appeared on click event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants