<html>
<head>
</head>
<body>
<div>
<select id="selectVal1">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult1">
</div>
</div>
<br /><br />
<div>
<select id="selectVal2">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult2">
</div>
</div>
<br /><br />
<div>
<select id="selectVal3">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult3">
</div>
</div>
<br /><br />
<div>
<select id="selectVal4">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult4">
</div>
</div>
<br /><br />
<div>
<select id="selectVal5">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult5">
</div>
</div>
<br /><br />
<div>
<select id="selectVal6">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult6">
</div>
</div>
<br /><br />
<div>
<select id="selectVal7">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult7">
</div>
</div>
<br /><br />
<div>
<select id="selectVal8">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult8">
</div>
</div>
<br /><br />
<div>
<select id="selectVal9">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult9">
</div>
</div>
<br /><br />
<div>
<select id="selectVal10">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult10">
</div>
</div>
<br /><br />
<div>
<select id="selectVal11">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult11">
</div>
</div>
<br /><br />
<div>
<select id="selectVal12">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult12">
</div>
</div>
<br /><br />
<div>
<select id="selectVal13">
<option value="val1">val1</option>
<option value="val2">val2</option>
</select>
<br /><br />
<div id="selectedResult13">
</div>
</div>
<button onclick="showSelected(document.getElementById('selectVal1').value, document.getElementById('selectVal2').value, document.getElementById('selectVal3').value, document.getElementById('selectVal4').value, document.getElementById('selectVal5').value, document.getElementById('selectVal6').value, document.getElementById('selectVal7').value, document.getElementById('selectVal8').value, document.getElementById('selectVal9').value, document.getElementById('selectVal10').value, document.getElementById('selectVal11').value, document.getElementById('selectVal12').value, document.getElementById('selectVal13').value);">Go</button>
</body>
<script type = "text/javascript">
function showSelected(){
for(i=0;i<arguments.length;i++){
document.getElementById('selectedResult'+(i+1)).innerHTML="<input type='text' value='"+arguments[i]+"' size='5' style='height:20px; margin-bottom:5px;'/>";
}
}
</script>
</html>
Comments
Leave a comment