How to make this code compatible with IE7?
<p>This code works in all browsers except for older IE versions. It'll be accessed by users, some of whom are still using IE7. I'm not a coder and the author isn't available until next week so I'm at loss how to refactor it so that all browsers show only the options defined in <code>chk</code>.</p>

<pre><code>    for (var x=1;x&lt;5;x++){
      var st='select[name="Score_'+x+'e"] option';
      $(st).each(function(){
        var chk=',0,1,2,3,4,5,,,,,,--,';
        var sn=','+$.trim(this.innerHTML)+',';
        if (chk.indexOf(sn)==-1){$(this).hide();}
      });
      st='#tableScoringInfoBox'+x+' strong';
      $(st).html('1-10 Ratings explained');
    }
</code></pre>
