Jquery how to get a hiddenfield with a particualr data attribute and set another data attribute
<p>I have the hidden field :</p>

<pre><code>&lt;input type="hidden" class="deleted" name="Deleted" data-id="2" value="@Model.Deleted" /&gt;
</code></pre>

<p>so there is going to be a few of these on the page but with different data-id values.</p>

<p>I'm wanting to get this particular one and set the value to true.</p>

<p>To get all hidden fields would be?</p>

<pre><code>$(':hidden')
</code></pre>

<p>However I only want to get ones with <code>class="deleted"</code> so this would be?</p>

<pre><code>$(':hidden.deleted')
</code></pre>

<p>Now I want to narrow it down to the one with <code>data-id="2"</code></p>

<p>Can someone tell me how to do this?</p>
