Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function selectedThumbnails () {
- $('.thumbnail').on('click', function(event) {
- const Src = $(this).find('img').attr('src');
- const Alt = $(this).find('img').attr('alt');
- $('.hero img').attr('src', Src).attr('alt', Alt);
- });
- }
- $(selectedThumbnails);
Add Comment
Please, Sign In to add comment