{"action":"created","issue":{"url":"https://api.github.com/repos/jasonhinkle/phreeze/issues/241","repository_url":"https://api.github.com/repos/jasonhinkle/phreeze","labels_url":"https://api.github.com/repos/jasonhinkle/phreeze/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/jasonhinkle/phreeze/issues/241/comments","events_url":"https://api.github.com/repos/jasonhinkle/phreeze/issues/241/events","html_url":"https://github.com/jasonhinkle/phreeze/issues/241","id":140510913,"number":241,"title":"Bootstrap select - dynamically pre select the default value","user":{"login":"TomasValenta","id":4901251,"avatar_url":"https://avatars.githubusercontent.com/u/4901251?v=3","gravatar_id":"","url":"https://api.github.com/users/TomasValenta","html_url":"https://github.com/TomasValenta","followers_url":"https://api.github.com/users/TomasValenta/followers","following_url":"https://api.github.com/users/TomasValenta/following{/other_user}","gists_url":"https://api.github.com/users/TomasValenta/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasValenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasValenta/subscriptions","organizations_url":"https://api.github.com/users/TomasValenta/orgs","repos_url":"https://api.github.com/users/TomasValenta/repos","events_url":"https://api.github.com/users/TomasValenta/events{/privacy}","received_events_url":"https://api.github.com/users/TomasValenta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-13T17:55:43Z","updated_at":"2016-04-06T20:45:34Z","closed_at":null,"body":"Hello @jasonhinkle,\r\n\r\nfirst thank you very much for your perfect work, it's very useful! I want to ask you for help with bootstrap select. I made this simple DropDownList in *.tpl.php:\r\n\r\n```` html\r\n<select id=\"type\">\r\n    <option value=\"1\">Text 1</option>\r\n    <option value=\"3\">Text 2</option>\r\n    <option value=\"7\">Text 3</option>\r\n</select>\r\n````\r\n\r\nbut how to pre select the default value? The only working solution is mark one option with \"selected\" parameter, as is [suggested here](https://teamtreehouse.com/community/bootstrap-select-option-default-value). But how to do this dynamically?\r\n\r\nSomething like with the checkboxes?\r\n```` html\r\n<input type=\"checkbox\" id=\"popular\" name=\"popular\" value=\"true\" <% if (item.get('popular') == 'true') { %>checked=\"checked\"<% } %> /> Popular?\r\n````"},"comment":{"url":"https://api.github.com/repos/jasonhinkle/phreeze/issues/comments/206558476","html_url":"https://github.com/jasonhinkle/phreeze/issues/241#issuecomment-206558476","issue_url":"https://api.github.com/repos/jasonhinkle/phreeze/issues/241","id":206558476,"user":{"login":"xtrasmal","id":1174877,"avatar_url":"https://avatars.githubusercontent.com/u/1174877?v=3","gravatar_id":"","url":"https://api.github.com/users/xtrasmal","html_url":"https://github.com/xtrasmal","followers_url":"https://api.github.com/users/xtrasmal/followers","following_url":"https://api.github.com/users/xtrasmal/following{/other_user}","gists_url":"https://api.github.com/users/xtrasmal/gists{/gist_id}","starred_url":"https://api.github.com/users/xtrasmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xtrasmal/subscriptions","organizations_url":"https://api.github.com/users/xtrasmal/orgs","repos_url":"https://api.github.com/users/xtrasmal/repos","events_url":"https://api.github.com/users/xtrasmal/events{/privacy}","received_events_url":"https://api.github.com/users/xtrasmal/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T20:45:34Z","updated_at":"2016-04-06T20:45:34Z","body":"@TomasValenta Hi Tomas, please read the comments on the bottom here https://github.com/jasonhinkle/phreeze/issues/227 \r\n"}}