I had to grab the value from an input element on blur event (which I have to do a lot…I wish Elm provided it out of the box as it does for input event). Anyhow, I figured out how to do it. The following works:
Evts.on "blur" (JD.map (UpdateRecVal recId currVal) Evts.targetValue)
But before the above solution, I had:
Evts.on "blur" (JD.map (UpdateRecVal recId currVal) JD.string)
The latter fails silently. Nothing happens when the value is changed and the blur event is fired. Shouldn’t the latter throw a compile time error?