Skip to content

Instantly share code, notes, and snippets.

@robskidmore
Created January 23, 2014 00:52
Show Gist options
  • Save robskidmore/8570693 to your computer and use it in GitHub Desktop.
Save robskidmore/8570693 to your computer and use it in GitHub Desktop.
Hover and replace using data-attributes
jQuery(function($) {
$('.hover-image').bind('mouseover', function() {
$('.testimonial').html($(this).data('testimonial'));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment