I have the following:
while($round < $counter)
<select name="picks[]" id="winner">';
echo'<option value="'.$row['team1'].'">'.$team1.'</option>';
echo'<option value="'.$row['team2'].'">'.$team2.'</option>';
echo'</select>';
echo'BY';
echo'<select name="score[]" id="score>';
echo'<option value="1">1</option>';
echo'<option value="2">2</option>';
echo'<option value="3">3</option>';
echo'<option value="4">4</option>';
echo'<option value="5">5</option>';
echo'<option value="6">6</option>';
echo'<option value="7">7</option>';
echo'<option value="8">8</option>';
echo'<option value="9">9</option>';
echo'<option value="10">10</option>';
Which along with some other code produces this

I would like to get the value of each select box score and selected team to display in a div at the bottom of the page before user clicks submit
I have managed to achieve this result:

using the code below but it only works with 1 team
function disp(){
var winner = document.getElementById("winner").value;
var score = document.getElementById("score").value;
document.getElementById("pickedDiv").style.cssText='background:#f0f0f0;width:60%; height:200px; border:thin solid black; border-raduis:10px;';
document.getElementById("picked").innerHTML="You are selecting: "+winner+" to win by "+score;
}
If someone could please give me some advise how I can modify the script above to get all selected teams and points to disp in div
idwhich is invalid HTML. Elements need to have uniqueids.<select name="score[]" id="score>, and its closing tag. be sure to add it so the HTML doesnt break