I made a table with a dropdown menu.
<tr>
<td>items</td>
<td><select id="afewitems">
<option value="0">Select</option>
<option value="1">item1</option>
<option value="2">item2</option>
</td></select>
</tr>
With javascript (not jQuery) i want to dynamicly load items on the screen based on the selection. Example: when i select item1 (value="1") i want extra information loaded on the webpage based on the selection. (text and/or images)
I found this on the site: Adding additional data to select options using jQuery http://jsfiddle.net/GsdCj/2/
So my question is: How can i load pre-written information in Java based on Select ID/Value?