G
G
Gera112020-04-19 22:22:33
JavaScript
Gera11, 2020-04-19 22:22:33

How to make a JQ script that will replace the css class on links in which there are only img images?

There are such lines of code that remove the css class on all links on the page
and the code that initializes the display of images through the gallery script.

$(document).ready(function(){
$('a').toggleClass('highslide').toggleClass('lalo');
$().fancybox({
  selector : '#gg99 a:visible',
  thumbs   : {
    autoStart : true
  }
});


How can I change it so that it searches and sets the css class not for all links, but only for those that wrap the img tag?
Ie Here is the code.
selector : '#gg99 a:visible

The gallery used is this one

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question