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


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

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