$(function() {
$('#top').change(function() {
$.get('test.php', {top:$(this).val()});
});
});$arr = $_GET['top'];
$('#top').change(function() {
$.get('test.php', {top:$(this).val()});
});
});$arr = $_GET['top'];
反正ajax也是js执行的,直接在回调函数中加语句就行
具体做法加个div或span设个id,再写一条js语句
要改的值很多的话干脆把整块页面内容替换掉。