rvera / image-picker

Image Picker is a simple jQuery plugin that transforms a select element into a more user friendly graphical interface.
http://rvera.github.com/image-picker
Other
906 stars 216 forks source link

Empty value in the select menu shows all items as selected #59

Open robbiegod opened 9 years ago

robbiegod commented 9 years ago

This was easy enough to fix, i just added in a different value for option menu, but still it would be nice if we could just leave the value="" empty and still have the plugin show only one item selected. This probably has to do with how the plugin defines its index.

SgtOddball commented 7 years ago

Leaving the value empty but having an item selected will lead to confusion (I can imagine users submitting pages with no values thinking that the default image is selected).

What should happen is an empty value leaves no images selected at all.