<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" src="jquery-1.7.2.js"></script>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
</head>
<body>
<form>
<select name="11" id="11">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
<div id="xz"></div>
<script type="text/javascript"> //脚本一定要写在body部分,在head部分不工作;
$('#11').change(function(){
// alert("nihao!");
var data = $(this).val();
alert(data);
$.get(
'test.php',
data,
function(){
window.open("te.php?data="+data,'_self');
}
);
});
</script>
<?php
error_reporting(0);
$ao=$_GET["data"];
echo $ao;
?>
</body>
</html>