I think you are trying to increase the number when the button2 is clicked and to decrease when the button1 is pressed
If it is →
$w.onReady(function () {
$w('#button2').onClick((event) => {
$w('#inputtext1').text = Number($w('#inputtext1').text) + 1;
});
$w('#button1').onClick((event) => {
$w('#inputtext1').text = Number($w('#inputtext1').text) - 1;
});
});
Perfect bro ! Thanks u very much