Toggle image on hover of thumbnails?
问题 please see this fiddle: http://jsfiddle.net/rabelais/e47xq/2/ I want to show the large image of the thumbnail when the uses hovers on the thumbnail. Below is my starting point. Any suggestions how to do this? In my final version there will be possible 20 thumbnails so I need the code to be as concise as possible. $(".thumnails").on("mouseover mouseout", "a", function () { $('#').toggle(); }); 回答1: .attr() $(this).attr('href') get current a tag href attribute. $(".thumnails").on("mouseover