setChecked on load

On load, how do I setChecked the combo value as “checked” base from the string values, in this case is strArrayFromTable.

Below are my ASP codes.

      strArrayFromTable = "2,7,14"  <--- I want value 2, 7 and 17 set as "checked"

        <select opt_type="checkbox" style='width:200px;'  id="combo_zone1" name="alfa1">
            <option value="1">a00</option>
            <option value="2">a01</option>
            <option value="3">a02</option>
            <option value="4">a10</option>
            <option value="5">a11</option>
            <option value="6">a12</option>
            <option value="7">b00</option>
            <option value="8">b01</option>
            <option value="9">b02</option>
            <option value="10">b10</option>
            <option value="11">b11</option>
            <option value="12">b12</option>
            <option value="13">a22</option>
            <option value="14">a31</option>
            <option value="15">a04</option>

There is setCheckedByValue that checks option by a value:

var strArrayFromTable = “2,7,14”;
var arr = strArrayFromTable.split(",");
for(var i = 0;i <arr.length;i++)

Thanks, it works perfectly.