marcj/jquery-selectBox

Dynamically adding options

Opened this issue · 3 comments

Hi,

first of all great job on this jquery plugin. Love it!
I've been trying to dynamically add options to the select but without success. I tried refresh and destroy/recreate but without success.

Can you recommend a good way of doing this?

Same here!

How resolve this problem?

After spending an hour, finally, I have resolved the issue by calling the refresh method in the request success.

$('#id').selectBox('refresh');