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