Create the select directive