Added support for text in select event