Submit value of dynamically created checkboxes, with ajax
<p>I've got about twenty checkboxes that are dynamically created with the following pattern:</p>

<pre><code>&lt;input type="checkbox" id="cb01" name="vehicle" /&gt;
</code></pre>

<p>I give it an ID of cb + index and a name attribute that corresponds to a database entry.</p>

<p>So over to my question: </p>

<p>Whats the best way to loop through the checkboxes performance wise? I need to send both the name and the value of the checkbox.</p>

<p>I would prefer the data as a jsonstring..</p>
