jQuery Change Value based on Value
<p>Can you change the value of an input field based on the original value?</p>

<pre><code>&lt;input type="checkbox" value="fooBar1" class="checkbox" /&gt;
&lt;input type="checkbox" value="fooBar2" class="checkbox" /&gt;
</code></pre>

<p>Was trying something like this ...</p>

<pre><code>if ($('.checkbox').val() == 'fooBar1') {
   $(this).val('1');
}
</code></pre>
