I\'d want to make button onclick function that takes some input.
onclick
Check @functions { pu
Try it with a lambda. You're binding the onclick to the result of the function rather than the function itself.
@for (int i = 0; i < 10; i++) { var buttonNumber = i; test(buttonNumber, 5 * buttonNumber))">Check }