$("#class").change(function(){
var StudentClass = $(this).val();
//alert(StudentClass);
$.ajax({
url: "getStudentClass.php",
type: "post",
data: 'StudentClass'=StudentClass,
success: function(data){
alert(data);
},
error:function(){
alert("failure");
$("#result").html('there is error while submit');
}
});
});
apove 代码给我这个错误无效分配左侧
[Break On This Error]
data: 'StudentClass'=StudentClass,
midterm_test.php (line 28, col 24)
任何有想法的人,这正在发生