Hello, i want to link JS function to button. I tried several ways, but i can’t make it work. Function works with onclick attribute on button, but i dont know how i can add it on webflow. Thanks!
<script>
var amount = 1;
function more()
{
amount++;
document.getElementById('amount-div').innerHTML = amount;
}
</script>