I have created a test page and on this test page there is a ‘Refresh’ button that when clicked I would like it to only show ‘x’ number of input boxes when ‘x’ is input in the number of players.
My code…
export function refresh_click() {
let total = +($w(‘#players’).value);
for (let i=1, i<total, i++){
total = i;
$w(‘#input${total}’).expand();
}
}
the test page is…
www.therandomquiz.com/blank
Thanks