<div class="codetitle"> <span><a style="CURSOR: pointer" data="8503" class="copybut" id="copybut8503" onclick="doCopy('code8503')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code8503"> <br><script src="jquery.min.js" type="text/javascript"></script> <br><script language="javascript" type="text/javascript"> <BR>$(document).ready(function(){ <BR>$('#mySelect').change(function(){ <BR>alert($(this).children('option:selected').val()); <BR>var p1=$(this).children('option:selected').val();//这就是selected的值 <BR>var p2=$('#param2').val();//获取本页面其他标签的值 <BR>window.location.href="xx.php?param1="+p1+"¶m2="+p2+"";//页面跳转并传参 <BR>}) <BR>}) <BR></script> <br><br><select id="mySelect"> <br><option value="1">one</option> <br><option value="2" selected>two</option> <br><option value="3">three</option> <br></select> <br><input type="text" value="ooo" name="param2" id="param2"> <br> </div>