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

sync_picker_with_select does not work with two select boxes on the page #22

Closed censornet closed 10 years ago

censornet commented 10 years ago

Hi there,

Great plugin. However, I have two tags on my page and I'm trying to use sync_picker_with_select() to update the plugin when the selected option of the 2nd select box is changed by something else on the page. Unfortunately it does not seem to work when I use the following as per the documentation:

$("#selectbox2").data('picker').sync_picker_with_select();

If I delete the other select box from the page ("#selectbox1") then it works as expected.

Any ideas ?

Thanks Tim

rvera commented 10 years ago

That is weird, can you link me to a page where I can repro the problem?

censornet commented 10 years ago

Hi....actually I think it was a browser caching issue, sorry to waste your time :-O

rvera commented 10 years ago

No problem, happy to help