{"action":"opened","issue":{"url":"https://api.github.com/repos/gfranko/jquery.selectBoxIt.js/issues/321","labels_url":"https://api.github.com/repos/gfranko/jquery.selectBoxIt.js/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/gfranko/jquery.selectBoxIt.js/issues/321/comments","events_url":"https://api.github.com/repos/gfranko/jquery.selectBoxIt.js/issues/321/events","html_url":"https://github.com/gfranko/jquery.selectBoxIt.js/issues/321","id":58590978,"number":321,"title":"Drop down option list does not change when new populate (via JSON) is called","user":{"login":"SentencedToCode","id":6174338,"avatar_url":"https://avatars.githubusercontent.com/u/6174338?v=3","gravatar_id":"","url":"https://api.github.com/users/SentencedToCode","html_url":"https://github.com/SentencedToCode","followers_url":"https://api.github.com/users/SentencedToCode/followers","following_url":"https://api.github.com/users/SentencedToCode/following{/other_user}","gists_url":"https://api.github.com/users/SentencedToCode/gists{/gist_id}","starred_url":"https://api.github.com/users/SentencedToCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SentencedToCode/subscriptions","organizations_url":"https://api.github.com/users/SentencedToCode/orgs","repos_url":"https://api.github.com/users/SentencedToCode/repos","events_url":"https://api.github.com/users/SentencedToCode/events{/privacy}","received_events_url":"https://api.github.com/users/SentencedToCode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-23T14:18:57Z","updated_at":"2015-02-23T14:18:57Z","closed_at":null,"body":"Can someone show me some sample code on how to repopulate the drop down option list on  selecBoxIt control? This list populates perfectly from a JSON object, but when I remove, populate, refresh, I am left with an empty list:\r\n$(\"#selSM4\").data(\"selectBox-selectBoxIt\").remove();\r\n$(\"#selSM4\").selectBoxIt({\r\npopulate: function () { var deferred = $.Deferred(), arr = [], x = -1;\r\n\t$.ajax({ url: 'http://localhost:58933/home/AllSchoolList?subject'\r\n\t}).done(function (data) {\r\n\t\twhile (++x < data.length) {\r\n\t\t\tarr.push({text: data[x].name, value: data[x].value,\r\n\t\t\t}); }\r\n\t\tdeferred.resolve(arr);\r\n\t\t});\r\n\treturn deferred; }\r\n});\r\n$(\"#selSM4\").data(\"selectBox-selectBoxIt\").refresh();\r\nThe \"populate\" works initially.  Why not when i try to \"populate\" with a different list?"}}