add a select event.