Question

I am having problem on getting just one thumbnail on mouse over inside an imageMapster toolTip map. Actually my code keeps putting several thumbnails repeating them on every mouseover.

Here is my code: http://jsfiddle.net/H3mRE/1/

I appreciate any help.
Thank you.

Was it helpful?

Solution

The .append() method inserts the specified content as the last child of each element. But when .html() is used to set an element's content, any content that was in that element is completely replaced by the new content.

use html() instead of append() like

$('.toolTIPbocadillo').html(thumbImg);

http://jsfiddle.net/H3mRE/2/

hope this will help

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top