I’m using this code to get the data of the container after clicking the container itself. How to I achieve this by clicking a button with the container?
$w.onReady( function () {
$w("#checkbox1_change").onChange( (event) => {
let $item = $w.at(event.context);
let clickedItemData = $item("#dataset1").getCurrentItem();
console.log(clickedItemData);
} );
} );