JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Buttons › OnClick problem in button. › Reply To: OnClick problem in button.
October 25, 2024 at 10:13 am
#111650
tbettinazzi@axioma.it
Participant
I tried but this doesn’t solve my problem.
I tried with
<script>
const button = document.querySelector(“#button#);
button.addEventListener(‘click’, function(event) {
alert(‘Ci sono ‘ + button.form);
});
</script
but button.form is undefined.
Tried also with this.form, same result.
How can I solve.
Tks
- This reply was modified 2 months, 1 week ago by tbettinazzi@axioma.it.
- This reply was modified 2 months, 1 week ago by tbettinazzi@axioma.it.