# How to handle checkbox binding

**URL:** <https://discuss.emberjs.com/t/how-to-handle-checkbox-binding/14452>\
**Category:** Ember Data\
**Created:** [March 27, 2018, 11:46pm UTC](https://discuss.emberjs.com/t/how-to-handle-checkbox-binding/14452 "2018-03-27T23:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jufu233\_Li](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jufu233\_Li](https://discuss.emberjs.com/u/jufu233_Li)\
**Post date:** [March 27, 2018, 11:46pm UTC](https://discuss.emberjs.com/t/how-to-handle-checkbox-binding/14452/1 "2018-03-27T23:46:40Z")

</div>

Hi all!! I am new with ember and I have a question about checkbox binding.

Here is my hbs : {{#each menu}}

Completed

 \<p class="float-right" id="{{m.id}}" {{input type="checkbox" checked=this.checkCompleteToday click=(action "CompletedToday" menu.id)}}

{{/each}}

Menu is a model has a attribute called Completed date, which is a array contains a list of dates(YYYY-MM-DD), there should be a constructor function to check if it’s completed TODAY, if it is completed, make the checkbox of that menu as checked. I don’t know how to handle this actually, do i need to create another attribute for menu?

Any suggestion would be appreciated
