I found this code and have implemented it with limited success. It's the Java bit that's baffling me. The goal is to produce a dropdown box for the first instance of the shiptogroup (there are five total) and a blank cell for all other instances. When a selection is made from the dropdown box, I'd like all the other cells in that group to populate with that selection. So far, only the first cell is populated.
if($shiptogroup=="group4"){
if($grp4==0){
$displayblock .= "<select size=\"1\" name=\"shipto4\" onchange=\"document.getElementById ('grp4name').firstChild.data = this.options [this.selectedIndex].text\">
<option>- Select -</option>
<option>Arlington S</option>
<option>Mansfield</option>
</select>";
$grp4=1;
}else{
$displayblock .= "<p id=\"grp4name\"> </p>";
}
}
Many thanks for your help,
Reta