以下是我的代码我想从 .htm() 方法访问“课程类型”ID 如何访问该 ID
$("#question-type").html("<option>Select</option><option>Excel Sheet</option><option>One by One</option>");
$("#question-type").change(function(){
$("#course").html("<label>Select course </label><select id='course-type'><option>Course 1</option><option>Course 2</option><option>Course 3</option></select>");
});
$("#course-type").change(function(){
$("#subject").html("<label>Select subject </label><select id='subject-type'><option>Subject 1</option><option>Subject 2</option><option>Subject 3</option></select>");
});