{"action":"created","issue":{"url":"https://api.github.com/repos/harvesthq/chosen/issues/2198","labels_url":"https://api.github.com/repos/harvesthq/chosen/issues/2198/labels{/name}","comments_url":"https://api.github.com/repos/harvesthq/chosen/issues/2198/comments","events_url":"https://api.github.com/repos/harvesthq/chosen/issues/2198/events","html_url":"https://github.com/harvesthq/chosen/issues/2198","id":54490280,"number":2198,"title":".trigger(\"chosen:updated\"); does not work with recent versions of jquery.","user":{"login":"brigadier","id":5342151,"avatar_url":"https://avatars.githubusercontent.com/u/5342151?v=3","gravatar_id":"","url":"https://api.github.com/users/brigadier","html_url":"https://github.com/brigadier","followers_url":"https://api.github.com/users/brigadier/followers","following_url":"https://api.github.com/users/brigadier/following{/other_user}","gists_url":"https://api.github.com/users/brigadier/gists{/gist_id}","starred_url":"https://api.github.com/users/brigadier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigadier/subscriptions","organizations_url":"https://api.github.com/users/brigadier/orgs","repos_url":"https://api.github.com/users/brigadier/repos","events_url":"https://api.github.com/users/brigadier/events{/privacy}","received_events_url":"https://api.github.com/users/brigadier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-15T19:08:47Z","updated_at":"2015-02-09T13:00:13Z","closed_at":null,"body":"For example, I use the following code on the demo page http://harvesthq.github.io/chosen/ but with https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js instead of 1.6.4\r\n\r\n```\r\n<div>\r\n  <script>\r\n  function ins() {\r\n    var ur = $('option[value=\"Uruguay\"]');\r\n    $(ur).attr(\"selected\", true);\r\n    $(\".chosen-select\").trigger(\"chosen:updated\");\r\n  };\r\n  </script>\r\n  <button id=\"ins\" onclick=\"ins(); return false;\">Insert</button>\r\n</div>\r\n```\r\nIf I click on the button first time, Uruguay gets selected. Then I delete Uruguay by clicking an 'x' at the label. Then I click on the button again, but this time it does not work, the option does not apper any more an the list of selected options. With jquery 1.6.4 (the version used in the demo page) it works fine.\r\n\r\nThe standalone example: https://github.com/brigadier/chosentest\r\n"},"comment":{"url":"https://api.github.com/repos/harvesthq/chosen/issues/comments/73504454","html_url":"https://github.com/harvesthq/chosen/issues/2198#issuecomment-73504454","issue_url":"https://api.github.com/repos/harvesthq/chosen/issues/2198","id":73504454,"user":{"login":"jeremybenaim","id":181291,"avatar_url":"https://avatars.githubusercontent.com/u/181291?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremybenaim","html_url":"https://github.com/jeremybenaim","followers_url":"https://api.github.com/users/jeremybenaim/followers","following_url":"https://api.github.com/users/jeremybenaim/following{/other_user}","gists_url":"https://api.github.com/users/jeremybenaim/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremybenaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremybenaim/subscriptions","organizations_url":"https://api.github.com/users/jeremybenaim/orgs","repos_url":"https://api.github.com/users/jeremybenaim/repos","events_url":"https://api.github.com/users/jeremybenaim/events{/privacy}","received_events_url":"https://api.github.com/users/jeremybenaim/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T13:00:13Z","updated_at":"2015-02-09T13:00:13Z","body":"Works on latest Chrome. Which browser are you using?"}}