i have a list of values:

```
 <script>
 $().ready(function() {
var pi = '1,8';
    $('#items_'+i).attr("checked",true);
 });
 </script>                    

1 <input type="checkbox" id="items_1" name="myitems" value="1"  /> <br/>
2 <input type="checkbox" id="items_2" name="myitems" value="2"  /> <br/>
3 <input type="checkbox" id="items_3" name="myitems" value="3"  /> <br/>
4 <input type="checkbox" id="items_4" name="myitems" value="4"  /> <br/>
5 <input type="checkbox" id="items_5" name="myitems" value="5"  /> <br/>

6 <input type="checkbox" id="items_6" name="myitems" value="6"  /> <br/>
7 <input type="checkbox" id="items_7" name="myitems" value="7"  /> <br/>
8 <input type="checkbox" id="items_8" name="myitems" value="8"  /> <br/>
9 <input type="checkbox" id="items_9" name="myitems" value="9"  /> <br/>

```

based on the above list pi, i want to only check items\_1 and items\_8. not sure how.