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
907 stars 216 forks source link

How to unselect all selected with javascript? #143

Closed vihatsoft closed 4 years ago

vihatsoft commented 5 years ago

How to unselect all selected with java script?

Ex:

pinkopaio8 commented 5 years ago

Did you tried with a button and attribute "reset"? This script after all is just a select box, I guess it should work?

Humni commented 4 years ago

You can deselect the options in the select box then use $("select").data('picker').sync_picker_with_select(); to syncronize the image picker with the select box again. A future version will do this automatically for you