Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var quantityAllValue = document.getElementById("quantityAll").value;
var inputArray = document.getElementById("contentDiv").getElementsByTagName("input");
var inputArrayLength = inputArray.length;
for (a = 0 a < inputArrayLength; a++) {
if (inputArray[a].name == "quantityText") {
inputArray[a].value = quantityAllValue;
}
//Repeat If statement for Unit of Measure
//Repeat If statement for Disposition
}
<table cellpadding="0" cellspacing="0" border="0" style="width: 700px; position: relative; float: left;" class="topBorder">
<tr>
<td class="pad2px" width="200">Set all of the below to:</td>
<td class="pad2px" width="80"><input type="text" name="keySHIPMENT_QUANTITY" value="" size="3"></td>
<td class="pad2px" width="140"><select name="keyUNIT_MEASURE_ID">
<option value="">-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" width="200"><select name="keySHIPMENT_DISPOSITION_ID">
<option value="">-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select></td>
<td class="pad2px" width="40"></td>
</tr>
<tr class="columnHeaderBG">
<td class="pad2px" width="200"><span class="columnHeaderFont">Article Name</span></td>
<td class="pad2px" width="80"><span class="columnHeaderFont">Quantity</span></td>
<td class="pad2px" width="140"><span class="columnHeaderFont">Unit of Measures</span></td>
<td class="pad2px" width="200"><span class="columnHeaderFont">Disposition</span></td>
<td class="pad2px" width="40"></td>
</tr>
<tr>
<td class="pad2px" valign="top">Artichoke Aegean ringspot virus</td>
<td class="pad2px" valign="top"><input type="text" name="SHIPMENT_QUANTITY1" value="" size="3"></td>
<td class="pad2px" valign="top"><select name="UNIT_MEASURE_ID1">
<option value="" selected>-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" valign="top"><select name="SHIPMENT_DISPOSITION_ID1">
<option value="" selected>-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select><br /></td>
</tr>
<tr class="rowDivider"><td colspan="5"></td></tr>
<tr>
<td class="pad2px" valign="top">Artichoke mottled crinkle virus</td>
<td class="pad2px" valign="top"><input type="text" name="SHIPMENT_QUANTITY2" value="" size="3"></td>
<td class="pad2px" valign="top"><select name="UNIT_MEASURE_ID2">
<option value="" selected>-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" valign="top"><select name="SHIPMENT_DISPOSITION_ID2">
<option value="" selected>-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select><br /></td>
</tr>
<tr class="rowDivider"><td colspan="5"></td></tr>
<tr>
<td class="pad2px" valign="top">Duckweed</td>
<td class="pad2px" valign="top"><input type="text" name="SHIPMENT_QUANTITY3" value="" size="3"></td>
<td class="pad2px" valign="top"><select name="UNIT_MEASURE_ID3">
<option value="" selected>-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" valign="top"><select name="SHIPMENT_DISPOSITION_ID3">
<option value="" selected>-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select><br /></td>
</tr>
</table>
<script>
function setAllValues() {
var quantityAllValue = document.getElementById("keySHIPMENT_QUANTITY").value;
var inputArray = document.getElementById("contentDiv").getElementsByTagName("input");
var inputArrayLength = inputArray.length;
for (a = 0; a < inputArrayLength; a++) {
if (inputArray[a].name == "SHIPMENT_QUANTITY") {
inputArray[a].value = quantityAllValue;
}
}
}
</script>
<table cellpadding="0" cellspacing="0" border="0" style="width: 700px; position: relative; float: left;" class="topBorder">
<tr>
<td class="pad2px" width="200">Set all of the below to:</td>
<td class="pad2px" width="80"><input type="text" name="keySHIPMENT_QUANTITY" value="" size="3" id="keySHIPMENT_QUANTITY"><a href="#" onclick="setAllValues();" id="keySHIPMENT_QUANTITY">All</a></td>
<td class="pad2px" width="140"><select name="keyUNIT_MEASURE_ID">
<option value="">-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" width="200"><select name="keySHIPMENT_DISPOSITION_ID">
<option value="">-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select></td>
<td class="pad2px" width="40"></td>
</tr>
<tr class="columnHeaderBG">
<td class="pad2px" width="200"><span class="columnHeaderFont">Article Name</span></td>
<td class="pad2px" width="80"><span class="columnHeaderFont">Quantity</span></td>
<td class="pad2px" width="140"><span class="columnHeaderFont">Unit of Measures</span></td>
<td class="pad2px" width="200"><span class="columnHeaderFont">Disposition</span></td>
<td class="pad2px" width="40"></td>
</tr>
<div id = "contentDiv">
<tr>
<td class="pad2px" valign="top">Artichoke Aegean ringspot virus</td>
<td class="pad2px" valign="top"><input type="text" name="SHIPMENT_QUANTITY" value="" size="3"></td>
<td class="pad2px" valign="top"><select name="UNIT_MEASURE_ID1">
<option value="" selected>-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" valign="top"><select name="SHIPMENT_DISPOSITION_ID1">
<option value="" selected>-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select><br /></td>
</tr>
</div>
<tr class="rowDivider"><td colspan="5"></td></tr>
<tr>
<td class="pad2px" valign="top">Artichoke mottled crinkle virus</td>
<td class="pad2px" valign="top"><input type="text" name="SHIPMENT_QUANTITY" value="" size="3"></td>
<td class="pad2px" valign="top"><select name="UNIT_MEASURE_ID2">
<option value="" selected>-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" valign="top"><select name="SHIPMENT_DISPOSITION_ID2">
<option value="" selected>-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select><br /></td>
</tr>
<tr class="rowDivider"><td colspan="5"></td></tr>
<tr>
<td class="pad2px" valign="top">Duckweed</td>
<td class="pad2px" valign="top"><input type="text" name="SHIPMENT_QUANTITY" value="" size="3"></td>
<td class="pad2px" valign="top"><select name="UNIT_MEASURE_ID3">
<option value="" selected>-- select --</option>
<option value="1">Specimens</option>
<option value="2">Kilograms</option>
<option value="3">ac/ft</option>
<option value="4">Lbs</option>
</select></td>
<td class="pad2px" valign="top"><select name="SHIPMENT_DISPOSITION_ID3">
<option value="" selected>-- select --</option>
<option value="1">Package Released, Carrier Notified</option>
<option value="3">Pending Inspection</option>
</select><br /></td>
</tr>
</table>
function all(what)
{
el=document.fo.elements[what];
for (i=0;i<document.fo.elements.length;i++) {
if (document.fo.elements[i].type!=el.type) continue;
if (document.fo.elements[i].name.indexOf(el.name.substr(3))!=0) continue;
switch (el.type) {
case 'text': document.fo.elements[i].value=el.value; break;
case 'select-one': document.fo.elements[i].selectedIndex=el.selectedIndex; break;
}
}
}
<td class="pad2px" width="80"><input type="text" name="keySHIPMENT_QUANTITY" value="" size="3">[red]<a href="#" onclick="all('keySHIPMENT_QUANTITY');return false">all</a>[/red]</td>
el=document.fo.elements[what];
for (i=0;i<document.fo.elements.length;i++) {
el=document.fo.elements[what];
var elementArrayLength = el.length
for (i=0;i<elementArrayLength;i++) {