Dynamic CheckBoxes from JSON Array
<p>I am new to JavaScript / JQuery and I am not sure how I could do this. Maybe a small example of each part could help.</p>

<p>Say I have <code>&lt;div id="checkboxes"&gt;&lt;/div&gt;</code></p>

<p>When the page loads, I will make an ajax call that will return JSON array. This I know how to do.</p>

<p>The objects will be like so:</p>

<pre><code>[
  {
    name: "Item 1",
    id: "27",
    checked: "true"
  }
  ...
]
</code></pre>

<p>I need to somehow take that JSON response and inject in some checkboxes into that div that will also store the ID. The checkbox text would be 'name'.</p>

<p>Then, I need to know how to attach a function for when any of these checkboxes are checked, I will need to get the 'id' at that point because I will do an ajax call when any checked changes.</p>

<p>Any examples of doing this sort of thing with JQuery would be very helpful.</p>

<p>Thanks</p>
