Update select element value

I think you’ve omitted the important part of the code, but perhaps this post is relevant.