How to format and add new numbers dynamically to hidden field?
<p>I get from server into client side only pure number IDs, how to add dynamically it to html hidden field so that looks like array or JSON format (I mean: <code>["32","33","34"]</code>), so that in next step I can receive on serwer and parse? Hidden field contains on start only blank brackets <code>[]</code>.</p>

<p>My current code override hidden field from <code>[]</code> to e.g. <code>"32"</code>:</p>

<pre><code>$("#myHiddenField").val(JSON.stringify(data.result[0].newid));
</code></pre>
