Mit .selected
Code:
<select multiple="multiple" id="mehrfach">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<script language="JavaScript">
var ausw=getElementById("mehrfach");
for (int i=0;i<ausw.options.length;i++)
{var pos=ausw.options[i];
if(pos.selected)alert(pos.value);}</script>
Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
|