Q:

How to make this code compatible with IE7?

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 chk.
    for (var x=1;x<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');
    }

A:

A quick fix would be to simply replace .hide() with .remove(), though there's no way of knowing without seeing more code if that will impact something else.

