Skip to content
Snippets Groups Projects
Commit c7e5c2b1 authored by Антон Шалимов's avatar Антон Шалимов
Browse files

fix

parent 0c67b7c9
Branches
Tags
No related merge requests found
...@@ -677,9 +677,8 @@ $('.SelectGrade').change(function(){ ...@@ -677,9 +677,8 @@ $('.SelectGrade').change(function(){
}, },
function(data){ function(data){
data = $.parseJSON(data); data = $.parseJSON(data);
console.log(data);
if (data != null && data != undefined) { if (data != null && data != undefined) {
$('.SelectStudyGroup').html(''); $('.SelectStudyGroup').html('<option value="0">Выберите группу:</option>');
for (i = 1; i <= data.count; i++) { for (i = 1; i <= data.count; i++) {
$('.SelectStudyGroup').append('<option value="'+ data[i].GroupID +'">Группа '+ data[i].GroupNum +' - '+ data[i].SpecName +'</option>'); $('.SelectStudyGroup').append('<option value="'+ data[i].GroupID +'">Группа '+ data[i].GroupNum +' - '+ data[i].SpecName +'</option>');
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment