I would like to change the appropriate line when a change has been done on a select.
I have something like that :
<table>
<tr>
<td>
<select id="ListeElement" name ="ListeElement" onchange="changeLabel(this)">
<option value="Option 1">Option 1</option>
<option value="Option 2">Option 2</option>
</select>
</td>
<td>
<span id="labelElement" name="labelElement" onchange="changeLabel(this)">option</span>
</td>
</tr>
<tr>
<td>
<select id="ListeElement" name="ListeElement" onchange="changeLabel();">
<option value="Option 1">Option 1</option>
<option value="Option 2">Option 2</option>
</select>
</td>
<td>
<span id="labelElement" name="labelElement" onchange="changeLabel()">option</span>
</td>
</tr>
So if I change the first select I would like to change my first label with the value selected.
I know that an ID is unique but I can't change my html code.
I can only add JavaScript method.
Thx