Hola
Vemos el valor de los options tendrá (nivel y entrada) y tu lo que necesitas es insertar en el text solo la entrada. ¿Es así?
Prueba este ejemplo
Código javascript
:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
</head>
<body>
<form >
<select onChange="document.getElementById('nivel').value = this.options[this.selectedIndex].value.split(',')[0]">
<option value="1,A"> 1</option>
<option value="2,B"> 2</option>
<option value="3,C"> 3</option>
<option value="4,D"> 4</option>
<option value="5,E"> 5</option>
</select>
<input type="text" id="nivel" name="nivel">
</body>
</html>
Fijate que solo he cambiado
Cita: <select onChange="document.getElementById('nivel').value=t his.options[this.selectedIndex].value">
por
Cita: <select onChange="document.getElementById('nivel').value=t his.options[this.selectedIndex].value.split(',')[0]">
Y a los options le le añadido los dos valores
Suerte