jquery check previous check-box before a tag to be checked
<p>I have a code like</p>

<pre><code>&lt;input type="checkbox" name="abc" value="A" class="chbx"&gt;
&lt;a href="#" class="checkbox-selector"&gt;href1&lt;/a&gt;
&lt;input type="checkbox" name="abc" value="b" class="chbx"&gt;
&lt;a href="#" class="checkbox-selector"&gt;href2&lt;/a&gt;
&lt;input type="checkbox" name="abc" value="c" class="chbx"&gt;
&lt;a href="#" class="checkbox-selector"&gt;href3&lt;/a&gt;
</code></pre>

<p>What I desired is when I click on <code>href1</code> checkbox 1st should be selected and when I click on <code>href2</code>, the 2nd checkbox should be selected.</p>

<p>How can this be done in jQuery ?</p>
