Knockout: How to pass data-bound input value back to function on click?
<p>I have a simple checkbox. It gets its own <code>value</code> attribute from the view model. On click, I need to send that value back to a function. How do I do that?</p>

<p>I tried this but value did not work</p>

<pre><code>&lt;input class="cards-view--item-checkbox pull-right" type="checkbox" 
data-bind="value: universalParcelId, click: $root.addUniversalParcelIDtoArray(value)" /&gt;
</code></pre>