Modify jQuery javascript to trigger on :checked instead of :hover — image swap
问题 I have a great piece of jQuery that swaps an image when the user hovers on an image. Check out the code below to see it. It uses mouseenter and mouseleave . I would like to modify it so that the image swap triggers when a specific input/label is :checked . You can see my demo page here: http://test.davewhitley.com/not-wp/static_folder/index.php To give you some background, I have 4 inputs/labels. When one is checked, a group of images will be swapped from black and white to their color