how to convert this javascript to jquery?
<p>I have this code, but I'm not sure how to convert it to jquery because of the <code>check</code> variable which I am using to see if the stuff inside the <code>if</code> statement happened at least once. <code>gph_img_list</code> is the name tag for lots of radio buttons.</p>

<pre><code>    var check = false;
    for (var i=0; i &lt; gph_img_list.length; i++) { 
        if (gph_img_list[i].value == var_gph_img.innerHTML) { 
            gph_img_list[i].checked = true;
            check = true;               
            break;
        }
    }
    if (!check) {
        var_gph_img.innerHTML = "";
    }
</code></pre>
