Greetings
I try to write code that each time a button is pressed a number is added to the text
The problem is that it stops after one click
How can I make the action continue with every click
Please help
export function button4_onclick(event, $w) { let selectedQuantity = Number(event.target.value); $w('#text10').text = String(Number($w('#text8').text) + 1); }
// For base 10
$w('#text10').text = (Number($w('#text10').text) + 1).toString();