If the option value is not unique then it causes multiple options to be selected.
See this fiddle http://jsfiddle.net/a90wqg27/ and try selecting Bicycling, mountain, general and Bicycling, BMX will also be selected.
It is valid to have multiple options with the same value so you might want to add a unique identifier to the option using a data attribute to keep track of each option rather than assuming that the values will be unique.
In this case I could easily work around the issue by using <option data-value="x"> and fixing it with javascript but it would be nice to not have to do that.
If the option value is not unique then it causes multiple options to be selected.
See this fiddle http://jsfiddle.net/a90wqg27/ and try selecting
Bicycling, mountain, general
andBicycling, BMX
will also be selected.It is valid to have multiple options with the same value so you might want to add a unique identifier to the option using a data attribute to keep track of each option rather than assuming that the values will be unique.
In this case I could easily work around the issue by using
<option data-value="x">
and fixing it with javascript but it would be nice to not have to do that.