Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

Passing 2 values at the same time to a checkbox action (3.4)

$
0
0

I want to pass an ID and the state of a checkbox to it’s onChange action. I succesfully can pass the checked state :

{{input type='checkbox' change=(action "selectProduit" value="target.checked") }}

And I can successfully pass the ID value:

{{input type='checkbox' change=(action "selectProduit" id)}}

When I try to pass them both, I end up with an undefined value for id

How can I pass them both ?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles