Implementation of the select element

Close #304