<form action="getDepartmentID" method="post">
<div id=main>
<select id="depList"name="depList"style="width:190px;"class="selListBox">
<option value="0">[Please Select]</option>
<option value="43">Information Technology</option>
<option value="44">Costing and Budgeting</option>
<option value="45">Supply Chain</option>
<option value="61">Marketing</option>
<option value="62">Financial</option>
<option value="63">HR</option>
</select>
</div>
</form>
在提交时,查询字符串包含带有值的参数,即?depList=43
当我使用jquery .load(); 填充此列表时;功能即
$('#main').load('ajax/Options.jsp');
选项.jsp
<select id="depList"name="depList"style="width:190px;"class="selListBox">
<option value="0">[Please Select]</option>
<option value="43">Information Technology</option>
<option value="44">Costing and Budgeting</option>
<option value="45">Supply Chain</option>
<option value="61">Marketing</option>
<option value="62">Financial</option>
<option value="63">HR</option>
</select>
它成功填充但是当我在选择一个选项后按下提交时,它不发送任何参数,即使我使用以下
$("#depList").change(function() {
$('#depList option:selected').attr('checked', 'checked');
});
如何解决这种情况?