function updateCourseList(sessionId) { $selectCourse = $("select#course_id"); $selectCourse.empty(); $.get("'.api_get_path(WEB_AJAX_PATH).'session.ajax.php", { a: "get_courses_inside_session", session_id : sessionId }, function (courseList) { $("