Dynamically adding options
Opened this issue · 3 comments
dutchman71 commented
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?
abnt713 commented
Same here!
skylark26 commented
How resolve this problem?
umair-khanzada commented
After spending an hour, finally, I have resolved the issue by calling the refresh method in the request success.
$('#id').selectBox('refresh');