# Bind-attr ember js not updating store

**URL:** <https://discuss.emberjs.com/t/bind-attr-ember-js-not-updating-store/6760>\
**Category:** Uncategorized\
**Created:** [November 21, 2014, 4:40pm UTC](https://discuss.emberjs.com/t/bind-attr-ember-js-not-updating-store/6760 "2014-11-21T16:40:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmoorthy](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@cmoorthy](https://discuss.emberjs.com/u/cmoorthy)\
**Post date:** [November 21, 2014, 4:40pm UTC](https://discuss.emberjs.com/t/bind-attr-ember-js-not-updating-store/6760/1 "2014-11-21T16:40:39Z")

</div>

I have an input box " input type=“text” {{bind-attr value=val }} " in a component . The input box displays the value from data store (val). How ever whan i edit the value, the data store is not updated on the fly. any idea why?

DEBUG: Ember : 1.8.1 ember-1.8.1.js:15373 DEBUG: Ember Data : 1.0.0-beta.11 ember-1.8.1.js:15373 DEBUG: Handlebars-runtime : 1.1.2 ember-1.8.1.js:15373 DEBUG: jQuery : 1.10.2

---

<div class="post-metadata">

**Author:** ![turboMaCk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/turbomack/32/15711_2.png) [@turboMaCk](https://discuss.emberjs.com/u/turboMaCk)\
**Post date:** [November 21, 2014, 7:19pm UTC](https://discuss.emberjs.com/t/bind-attr-ember-js-not-updating-store/6760/2 "2014-11-21T19:19:14Z")

</div>

Maybe because browser do not change value attribute in HTML while input content is changed. You have to use event for this.

Simply use input helper instead. It will also work in component

```
{{input type="text" value=val}}

```
