# Input helper with action, not work

**URL:** <https://discuss.emberjs.com/t/input-helper-with-action-not-work/9235>\
**Category:** Ember CLI\
**Created:** [December 3, 2015, 12:55pm UTC](https://discuss.emberjs.com/t/input-helper-with-action-not-work/9235 "2015-12-03T12:55:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangmonk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tangmonk/32/11716_2.png) [@tangmonk](https://discuss.emberjs.com/u/tangmonk)\
**Post date:** [December 3, 2015, 12:55pm UTC](https://discuss.emberjs.com/t/input-helper-with-action-not-work/9235/1 "2015-12-03T12:55:26Z")

</div>

that’s my code:

```auto
{{input type="submit" value=submit_btn_value class="button button-blue me_btn_top pay_recharge" action='charge' }}

```

the above `charge` action not trigger when click, but if I append `on="key-up"` to the input helper, It works, but click twice.

Ember 1.13

---

<div class="post-metadata">

**Author:** ![spectras](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@spectras](https://discuss.emberjs.com/u/spectras)\
**Post date:** [December 4, 2015, 4:55pm UTC](https://discuss.emberjs.com/t/input-helper-with-action-not-work/9235/2 "2015-12-04T16:55:40Z")

</div>

I think your template is incorrect, it should be:

```
{{input type="submit" value=submit_btn_value click='charge' }}

```

(class left out for readability)

As a sidenote, instead of registering an action on the submit button itself, you might want to register an action on the `submit` event of the form itself.

```
<form {{action 'charge' on='submit'}}>

```
