[RESOLVED] 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 jQuery category, let me know.
Instead of toggling the class, maybe you can try to set the background immediatly when clicking it, cuz i don't think IE7 checks the classes when changed without refresh..
I ended up changing my button to an input type="submit" - that solved it.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)