<select name="materialClassCode" size="1" onchange="javascript:setValue(this)">
<option value="5182">bb</option>
<option value="5183">cc</option>
<option value="5322">dd器</option></select>
<script>
function setValue(oSel){
   var strValue=oSel.value;
   var strText=oSel.options[oSel.selectedIndex].text;
   alert("value:"+strValue+"\n"+"text:"+strText); 
}
</script>