Snippet for selecting an option from a select list based on a passed in paramter