Dynamically create html based on the value supplied in select