[Solved] How to highlight the respective tab on clicking an image in it [closed]

[ad_1]

Since you are using separate event handler for each image, You can use the following script in the respective click handlers of each image

$('.tabs li').removeClass('active').eq(1).addClass('active');
---------------------------------------^ index of the tab to be displayed.

Updated Fiddle

1

[ad_2]

solved How to highlight the respective tab on clicking an image in it [closed]