Untitled
raw download clone
TEXT
views 30
,
size 322 b
<html>
<body>
 <script language="JavaScript">
var valueSelect;
function setLine(value){
valueSelect = value;
alert(valueSelect);
}
</script>
<select name=line onchange="setLine(this.options[this.selectedIndex].value);"> 
<option value="un">1</option>
<option value="deux">2</option>
</select>
</body>
</html>
close fullscreen
Login or Register to edit or fork this paste. It's free.