ajax type POST url ajax getSingleTT php data gr sdoGroup val dt sdoDt

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$.ajax({
type: "POST",
url: "../ajax/getSingleTT.php",
data: {
gr: sdoGroup.val(),
dt: sdoDt.val()
},
dataType: "json",
beforeSend: function() {
$(".sdo-timetable-lesson").hide('fast', function(){ $(".sdo-timetable-lesson").remove(); });
},
success: function(json) {
$.each(json, function(i, object) {
var temp = i + ". ";
$.each(object, function(property, value) {
temp += value + " / ";
});
$('#tt').append("<div></div>").addClass("sdo-timetable-lesson").text(temp);
});
},