diff --git a/.gitignore b/.gitignore index 2f24f9d511cc96a4dd6d4f260a5a18c19c34aac4..9d6f180fbac61e0f8d7244a9dfbdc900af0a5b9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,10 @@ *.class .classpath .project -build/ +/build/ + + +/target/ # Java class files *.class diff --git a/WebContent/jsp/AddCourse.jsp b/WebContent/jsp/AddCourse.jsp index ea93712bd0560bf10d8c043827a225cc668ed6ff..0dac350364c62d7c6f06becc3b193d069d4db90c 100644 --- a/WebContent/jsp/AddCourse.jsp +++ b/WebContent/jsp/AddCourse.jsp @@ -25,6 +25,22 @@ tiptype:3 }); + $('#academyid').change(function (academyid){ + var academyid = $('#academyid option:selected').val(); + + $.ajax({ + url : '<%=request.getContextPath() %>/SpecialityController/QueryAllSpecialityByAcademyid.action', + datatype : 'json', + data: { "academyid":academyid}, + success : function(specialities){ + $('#specialityid').empty(); + specialities.forEach(function(speciality){ + $('#specialityid').append(''); + }) + } + }); + }); + }); @@ -96,9 +112,23 @@ - + + +