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