Show your code as you have it now.
Especially how you populate the <select>.
It's really hard to guess what you need from just that description. Might be trivial answer; might be tough.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.