Progressive number does not work in the panel

In my panel I need a button that creates a progressive number for me

I tried this code
If I upload it to Google it works perfectly
but if I put it in the panel it doesn’t work
why doesn’t it work in the panel?

<!DOCTYPE html>


var seq=0;
function myFunction() {
    document.getElementById("sequence").value = seq;

<sp-button onclick="myFunction()">Try it</sp-button>
<input id="sequence" type="text">


Manifest permissions? Do you see any error in the console?

Jarda thanks
it was a typo in the manifest file

Have a good evening

1 Like