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

:checked with input which has {display: none;} doesnt work #395

Open
GoogleCodeExporter opened this issue May 23, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I've used ie9.js for :checked functionality
2. I hide (display: none) default checkbox and replace it with pseudoelements
3. It didnt work on IE8

What is the expected output? What do you see instead?
If i set in html 'checked="checked"' it after load JS change to "check style". 
But after clicking on it, it doesnt response.
If i didnt set checked=checked, it doesnt response on clicking.

What version of the product are you using? On what operating system?
Tested on WinXP and Win7 via Virtualbox.

Please provide any additional information below.
I solved this problem by not hiding the input, but just fake hide (in my case 
opacity: 0, but it works also with visibility: hidden; and others).
http://jsfiddle.net/dannytce/c5WSQ/

Original issue reported on code.google.com by [email protected] on 25 Feb 2014 at 5:46

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

No branches or pull requests

1 participant