<script src="Jquery.min.js"Type="Text/javascript"></script> <script language="JavaScript"Type="Text/javascript">$ (document). Ready (function () {$ ('#mySelect'). Change (function () {alert ($ ( This). Children ('option:selected'). Val ()); varp1=$ ( This). Children ('option:selected'). Val ();//This is the value of selected.varp2=$ ('#param2'). Val ();//get values for other labels on this pagewindow.location.href="xx.php?param1="+p1+"¶m2="+p2+"";//page jumps and passes the parameter}) }) </script> <SelectId="Myselect"> <option value="1">one</option> <option value="2"Selected="selected">two</option> <option value="3">three</option> </Select> <input type="text"Value="ooo"Name="param2"Id="param2"/>
JQuery binds the Select tag's onchange event, pops up the selected value, and implements the jump, the argument (the value of the selected, and the value of the other elements of the page)