Remove a value from string in hidden field with jQuery
<p>I have a hidden field that stores all of the id's of images that have been uploaded for a specific post.</p>

<p>The hidden field HTML looks something like this:</p>

<pre><code>&lt;input type="hidden" id="post_images" name="post_images" value="1,2,3,4,5" /&gt;
</code></pre>

<p>When an image is deleted from the post, I need to remove it's image_id from that hidden field. So if I delete image_id 4 from the post, the hidden field needs to update to be <code>value="1,2,3,5"</code></p>

<p>I'm open to changing the way I store the image_id's for the post to a different format if there is a better way of doing this. </p>
