{"action":"created","issue":{"url":"https://api.github.com/repos/Formstone/Formstone/issues/222","repository_url":"https://api.github.com/repos/Formstone/Formstone","labels_url":"https://api.github.com/repos/Formstone/Formstone/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/Formstone/Formstone/issues/222/comments","events_url":"https://api.github.com/repos/Formstone/Formstone/issues/222/events","html_url":"https://github.com/Formstone/Formstone/issues/222","id":225108865,"number":222,"title":"Dropdown reset to default option?","user":{"login":"baimurzin","id":13979141,"avatar_url":"https://avatars0.githubusercontent.com/u/13979141?v=4","gravatar_id":"","url":"https://api.github.com/users/baimurzin","html_url":"https://github.com/baimurzin","followers_url":"https://api.github.com/users/baimurzin/followers","following_url":"https://api.github.com/users/baimurzin/following{/other_user}","gists_url":"https://api.github.com/users/baimurzin/gists{/gist_id}","starred_url":"https://api.github.com/users/baimurzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baimurzin/subscriptions","organizations_url":"https://api.github.com/users/baimurzin/orgs","repos_url":"https://api.github.com/users/baimurzin/repos","events_url":"https://api.github.com/users/baimurzin/events{/privacy}","received_events_url":"https://api.github.com/users/baimurzin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-28T15:06:38Z","updated_at":"2017-08-12T15:12:08Z","closed_at":"2017-08-12T15:12:08Z","body":"Dropdown reset to default option?\r\nHow do I can reset or set manually an option? \r\n\r\nIf I use simple way to set it like that: \r\n```\r\n$('#my-select').val(0) // it's my select\r\n//or \r\n$('#dropdown-selected').siblings('select').find('option').filter(function () {\r\n     return $(this).val() == 0;\r\n}).prop('selected', true);\r\n```\r\nThat's not work. It's event doesn't change the text in selected option. And when I submit a form, it also submitted old value."},"comment":{"url":"https://api.github.com/repos/Formstone/Formstone/issues/comments/321987197","html_url":"https://github.com/Formstone/Formstone/issues/222#issuecomment-321987197","issue_url":"https://api.github.com/repos/Formstone/Formstone/issues/222","id":321987197,"user":{"login":"benplum","id":1130075,"avatar_url":"https://avatars0.githubusercontent.com/u/1130075?v=4","gravatar_id":"","url":"https://api.github.com/users/benplum","html_url":"https://github.com/benplum","followers_url":"https://api.github.com/users/benplum/followers","following_url":"https://api.github.com/users/benplum/following{/other_user}","gists_url":"https://api.github.com/users/benplum/gists{/gist_id}","starred_url":"https://api.github.com/users/benplum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benplum/subscriptions","organizations_url":"https://api.github.com/users/benplum/orgs","repos_url":"https://api.github.com/users/benplum/repos","events_url":"https://api.github.com/users/benplum/events{/privacy}","received_events_url":"https://api.github.com/users/benplum/received_events","type":"User","site_admin":false},"created_at":"2017-08-12T15:12:08Z","updated_at":"2017-08-12T15:12:08Z","body":"You'll need to trigger the change event after setting the value:\r\n\r\n```\r\n$('#my-select').val(0).trigger('change');\r\n```"}}
{"actor":{"display_login":"benplum"}}