View Single Post
Old 07-09-2012, 04:40 PM   PM User | #3
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
You don't even need to do the looping-event-attaching thing, do you? Why not just:

PHP Code:
$(function() { 

    $(
".hover-element").on('mouseover', (function() { 

            $(
"#containerElement").html($("#" + $(this).attr('id') + "Content").html()); 

    });

}); 
Spudhead is offline   Reply With Quote