I need to add an onchange event handler in an input element in my Elm project but it does not seem to be available.
For example, if I want to add and onclick event handler, I can use the below code:
input [ onClick { desc = "ClickFunction", info = model.name } ] []
But when I try to do the below for onchange, it does not work:
input [ onChange { desc = "ChangeFunction", info = model.name } ] []
This is the error message I get:
NAMING ERROR - I cannot find a `onChange` variable:
These names seem close though:
31| [ onChange { desc = "ChangeFunction", info = model.name ] []
#^^^^^^^^#
#onCheck#
#srclang#
#enctype#
#lang#
So how do I implement the onchange event handler?