jQuery: trying to retrieve an object by it's ID string
<p>I have five $_POST hidden fields in my form that hold the id's names of the icons the user has chosen.
I want to make these icons marked back again if the user goes back to the page. 
I don't seem to understand how to do this, (marked as PROBLEM).</p>

<pre><code>var i=0;
while($('#field' + i + 1 + '_icon_id').val() != '') {
    $('img.selectable').filter(function() {
        // PROBLEM IS HERE (I THINK)
        return $(this).attr('id') == $('#field' + i + 1 +'_icon_id').val();
    }).css('border','3px solid ' + BLACK_COLOR);
    i++;
}
</code></pre>

<p>Besides, could anyone give me some advice as for how do I go about investigating my jQueries ? Can these be debugged ?</p>

<p>Thanks in advance !!</p>
