HI, Kevin2

Has helped me out by giving me a template code to work to but I am currently having trouble editing it and as he is not online was hoping someone could help me out.

Basically I have a HTML file and a .js file.

Within the HTML file I have various dropdowns.

I am able to add options to the HTML code which is straight forward but how do I edit the code in .js that when I select an option from the dropdown it calls the correct part from the .js file?

This is the HTML code that I have edited to include new dropdown selections named 0,1,2,3,4,5,6

<td style="text-align:right;">Class:</td>
<td><select id="class" name="class" onchange="cl(this,cl11,cl12,cl13,cl14,cl15,cl16,cl21,cl22,cl23,cl24,cl25,cl26,clp)">
<option value="">Choose one</option>
<option value="0">0</option> <!-- repeat options as necessary -->
<option value="0">1</option>
<option value="0">2</option>
<option value="0">3</option>
<option value="0">4</option>
<option value="0">5</option>
<option value="0">6</option>
</select></td>


How or where do I edit the .js?

Here is what I tried to edit by adding value for the dropdown named 1

function cl(el,oneone,onetwo,onethree,onefour,onefive,onesix,twoone,twotwo,twothree,twofour,twofive,twosix,pe rc){
switch(el.value){
case '0':
oneone.value='1';
onetwo.value='2';
onethree.value='3';
onefour.value='4';
onefive.value='4';
onesix.value='3';
twoone.value='2';
twotwo.value='1';
twothree.value='2';
twofour.value='3';
twofive.value='4';
twosix.value='3';
perc.value='3.50';
break;
case '1':
oneone.value='1';
onetwo.value='2';
onethree.value='3';
onefour.value='4';
onefive.value='4';
onesix.value='3';
twoone.value='2';
twotwo.value='1';
twothree.value='2';
twofour.value='3';
twofive.value='4';
twosix.value='3';
perc.value='3.50';
break;