How to get repeater data using checkbox?

I’m showing repeater data from database.Data is showing perfectly in repeater .
Now I want to select Checkbox on one or more repeater but not working.
When I checked checkbox it should show “Air Jordan”.But it is showing “Hydra”.Also index value are not showing.

This is my code
export function checkbox1_change(event) {
// Add your code for this event here:

let myid=$w( ‘#text32’ ).text;
console.log(myid);
$w( “#repeater2” ).onItemReady( ($item, itemData, index) => {

if ($w( “#checkbox1” ).checked) {
console.log( “index:” +index);
} else {
console.log( “no Index” );
}

} );

Change your $w to $item for the checkbox.

Yes it is working now for index.Thank you very much