Filter by clicking img instead of text tag / button

Hi there,

I am new, may I ask how to use coding to make a filter that can switch the displacement of content by clicking img in repeater instead of clicking text tag/button?

Many thanks for any help!!!

$w.onReady(()=>{
	$w('#repeater1').onItemReady(($item, itemData, index)=>{
		$item('#yourImageIdHere').onClick(()=>{
			//......your code here......
			//......your code here......
			//......your code here......
			//...do something when clicked button...
		});
	});
});