pub fn on_change<CB, MSG>(cb: CB) -> Attribute<MSG>where CB: FnMut(InputEvent) -> MSG + 'static, MSG: 'static,
attach an on_change event to the html element