fauzanjeg

Clicked Image in Slider

Nov 17th, 2021 (edited)
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.33 KB | None | 0 0
  1. /* Clicked Image in Slider */
  2. (function ($) {
  3.     $(window).ready(function () {
  4.         $('.jeg_slider_wrapper .tns-outer .jeg_slide_item').each(function () {
  5.             $(this).on('click', function () {
  6.                 link = $(this).find('.jeg_slide_caption .jeg_post_title a').attr('href');
  7.                 window.location.href = link;
  8.             });
  9.         })
  10.     })
  11. })(jQuery);
  12.  
Add Comment
Please, Sign In to add comment