need to creat variable variable in Javascript--not an array
<p>I'm needing to call a plugin that uses a var to work it's self.  but I can't get the var cause that can change so... this is what I was trying to do.</p>

<pre><code>var selection = $(".view-your-rescues .cms_textarea,.post-a-rescue .cms_textarea,.edit-account-details .cms_textarea");

if(selection.length &gt; 0 ) {
    selection
        .css({"height":"100","width":"500"})
        .each(function(i) { 
            var eval("hb"+i ) = $(this).htmlbox({
                toolbars:[[
                    "separator","bold","italic","underline","strike","sup","sub",
                    "separator","justify","left","center","right",
                    "separator","ol","ul","indent","outdent"
                ]],
                icons:"silk",
                skin:"red",
                idir:"/uploads/htmlbox/",
                about:false
        });
    });
}
</code></pre>

<p>So that is based on this <a href="http://htmlbox.remiya.com/cms/demo/iconsets-demo/" rel="nofollow">http://htmlbox.remiya.com/cms/demo/iconsets-demo/</a> where you'll see that that in order to do two you need to have the different vars.</p>

<p>The important part is</p>

<pre><code>.each(function(i){ 
    var eval("hb"+i )= $(this).htmlbox({
</code></pre>

<p>I tried the eval.. but I don't like that idea and it don't work anyway... any ideas?</p>

<p>EDIT: I can't do  var eval("hb"+i )= $(this) and if I go</p>

<p>eval("hb"+i )= $(this)</p>

<p>I just get "hb0 is not defined"</p>

<p>Hope that makes sense.  Thank you for the help.
Cheers -Jeremy</p>
