JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Buttons › OnClick problem in button. › Reply To: OnClick problem in button.
October 22, 2024 at 9:17 am
#111622
Participant
In my code I’ve
<button onClick=”testLogin(this.form) class=…>
where testLogin is a very simple js shown above.
When I substitute with
<smart-button onClick=”testLogin(this.form) class=…> seems that this.form is undefined and then the testLogin js fails telling me the variable is should receive is undefined.
Why this.form is undefined with smart-button ?
What’s the alternative ?
Tks