jquery - how to change the selector keeping the action same
<p>Suppose I have an array <code>Boxes={"#box5","#box3",#box1"","#box2","#box4"}</code> and I have a jquery statement</p>

<pre><code>$(Boxes[2]).click(--------some code----------)
</code></pre>

<p>my problem is that the statement is always executed as - when box1 is clicked even though I swap the Box array several times in between. So even when <code>Boxes[2] = "box2"</code> the code is still executed when I click box1 and not box2.</p>

<p>Is this some sort of preprocessing?</p>
