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 214 forks source link

how to change default first selected option? #136

Closed CodeCurosity closed 5 years ago

CodeCurosity commented 5 years ago

First image is selected by default, how can i change that, i don't want any image to be selected initially?

array81 commented 5 years ago

Quote. On start the plugin seems to ignore the select value, always the first item is selected.

supairish commented 5 years ago

@CodeCurosity Have the first option in your select be blank

CodeCurosity commented 5 years ago

@supairish very strange and it shouldn't be like this, it should pick up the selected attributed from the option but anyways adding this as first option works.

supairish commented 5 years ago

For future readers to play with

See the Pen Image Picker by Chris Irish (@supairish) on CodePen.