<div class="codetitle"> <span><a style="CURSOR: pointer" data="82676" class="copybut" id="copybut82676" onclick="doCopy('code82676')"><u>复代码</u></a></span> 代码如下:</div> <div class="codebody" id="code82676"> <br><script src="jquery-1.9.1.js"> ;</스크립트> <br><script type="text/javascript"> <br>$(function () { <br>$('#btn').click(function () { <br>alert($('#s option:selected').val()); <br> }) <br>}) <br></script> <br></head> <br><본문> <br><select id="s" multiple="multiple"> <br><option value="1">商</option> <br><option value="2">炳</option> <br><option value="3">奇</option> <br></select> <br><input type="button" id="btn" value="获取" /><br /> <br></body> <br> </div>