I want to carry some extra hidden information (eg: postal code) in an HTML select/option dropdown list and make it available to a javascript function when user changes option box selection.
This is the type of thing I would like to do (but alas it does not work). Can someone fix it or suggest reasonable alternative?
<select id="sel_activity" onchange="selectionChange(this.info)">
<option info="" value="CAR">CAR PROBLEM</option>
<option info="" value="COFFEE">Coffee Break</option>
<option info="45678" value="INV">INVENTORY COUNT</option>
<option info="23567" value="INVDROP">Inventory</option>
<option info="" value="LUNCH">Lunch Break</option>
<option info="87654" value="MEET">Meeting</option>
</select>
.
.
.
.
function selectionChange(info){
alert(info);
}