Skip to content

Instantly share code, notes, and snippets.

@evanfraser
Created February 15, 2020 16:56
Show Gist options
  • Save evanfraser/c9823a4a9e79165ea5c38a0b33a61960 to your computer and use it in GitHub Desktop.
Save evanfraser/c9823a4a9e79165ea5c38a0b33a61960 to your computer and use it in GitHub Desktop.
// Add image title dynamically
jQuery(document).ready(function($) {
$("img").attr("title", function() {
return $(this).attr("alt");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment