{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3305","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3305/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3305/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3305/events","html_url":"https://github.com/angular-ui/bootstrap/issues/3305","id":57981468,"number":3305,"title":"Datepicker input value not updated in html","user":{"login":"Saabertooth","id":10930289,"avatar_url":"https://avatars.githubusercontent.com/u/10930289?v=3","gravatar_id":"","url":"https://api.github.com/users/Saabertooth","html_url":"https://github.com/Saabertooth","followers_url":"https://api.github.com/users/Saabertooth/followers","following_url":"https://api.github.com/users/Saabertooth/following{/other_user}","gists_url":"https://api.github.com/users/Saabertooth/gists{/gist_id}","starred_url":"https://api.github.com/users/Saabertooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saabertooth/subscriptions","organizations_url":"https://api.github.com/users/Saabertooth/orgs","repos_url":"https://api.github.com/users/Saabertooth/repos","events_url":"https://api.github.com/users/Saabertooth/events{/privacy}","received_events_url":"https://api.github.com/users/Saabertooth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20datepicker","name":"component: datepicker","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/resolution:%20support","name":"resolution: support","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/15","html_url":"https://github.com/angular-ui/bootstrap/milestones/Purgatory","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/milestones/15/labels","id":831076,"number":15,"title":"Purgatory","description":"","creator":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"open_issues":57,"closed_issues":80,"state":"open","created_at":"2014-10-18T10:43:17Z","updated_at":"2015-08-01T03:36:58Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-17T21:02:24Z","updated_at":"2015-08-01T03:36:58Z","closed_at":"2015-08-01T03:36:58Z","body":"This issue pertains to ui.bootstrap.datepicker. The issue is that when using .val() to set the value of the datepicker input field, the value is set in the DOM but not in the html whereas by using .attr() to set the 'value' attribute sets both.\r\n\r\nI have what may be a unique situation where I need to extract the html and render elsewhere, causing the value in the DOM to be lost and a blank input to be displayed.\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/126856963","html_url":"https://github.com/angular-ui/bootstrap/issues/3305#issuecomment-126856963","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/3305","id":126856963,"user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T03:36:58Z","updated_at":"2015-08-01T03:36:58Z","body":"This works perfectly fine, as demonstrated by [this Plunker fork](http://plnkr.co/edit/ZoaaXXepw5A7QBUrdIqn?p=preview).\r\n\r\nThere is not much that should be done on UI Bootstrap's side - the data is available in the DOM and the model value, it is up to the developer to make use of their JavaScript to extract the necessary values, since it is something that the developer can control."}}