Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-28-2012, 01:30 PM #1
- Join Date
- Jun 2009
- Thanked 0 Times in 0 Posts
toggleClass and background images
I have a button which selects a hidden input field when clicked. This part works fine. However, I'm using jQuery and toggleClass in order to switch class, icon and label of the button, and this doesn't work properly in IE7. The background image doesn't show when clicking the button (and it never comes back no matter the state of the button). I know the css3 stuff isn't supposed to work but it would be nice to display the background image.
Everything works fine in IE8, IE9, FF and Chrome. See example: here.
If this post needs to be moved to the script category, let me know.