Ok here is a small example from the first output for the html file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tracks</title>
<script src="tracks.js"></script>
</head>
<body>
<table>
<thead>
<tr>
<th colspan="3"></th>
<th>1</th>
<th>2</th>
<th>3</th>
<th>A</th>
<th>B</th>
<th>C</th>
<th colspan="2"></th>
</tr>
</thead>
<tbody>
<tr><td colspan="11"><hr /></td></tr>
<tr>
<td style="text-align:right;">Trap 1:</td>
<td><select id="track" name="track" onchange="track(this,tr11,tr12,tr13,tr14,tr15,tr16,tr21,tr22,tr23,tr24,tr25,tr26,trp)">
<option value="">Choose one</option>
<option value="P A Tompsett">P A Tompsett</option>
</select></td>
<td style="text-align:right;">1:</td>
<td><input type="text" size="3" readonly id="tr11" class="FTw1" /></td>
<td><input type="text" size="3" readonly id="tr12" class="FBw1" /></td>
<td><input type="text" size="3" readonly id="tr13" class="FTp1" /></td>
<td><input type="text" size="3" readonly id="tr14" class="FBp1" /></td>
<td><input type="text" size="3" readonly id="tr15" class="FTt1" /></td>
<td><input type="text" size="3" readonly id="tr16" class="FBt1" /></td>
<td style="text-align:right;">%:</td>
<td><input type="text" size="3" readonly id="trp" class="perc" /></td>
</tr>
Ok so basically I know this creates a dropdown box with an option called P A Tompsett.
It then calls the javascript file where I have values loaded in order to fill the text boxes in the html.
Here is the javascript.
function track(el,oneone,onetwo,onethree,onefour,onefive,onesix,twoone,twotwo,twothree,twofour,twofive,twosix,perc){
switch(el.value){
case 'P A Tompsett':
oneone.value='0';
onetwo.value='21';
onethree.value='14';
onefour.value='5';
onefive.value='26';
onesix.value='19';
break;
default:
oneone.value='';
onetwo.value='';
onethree.value='';
onefour.value='';
onefive.value='';
onesix.value='';
break;
}
total();
}
Ok so quick explanation is that once P A Tompsett is selected from the drop down the values in the boxes are filled as 0, 21, 14, 5, 26, 19
Ok now that this is out of the way I would like to be able to highlight the text boxes that show the numbers 21,14,26,19
How do I go about this?