2
我的HTML是:如何在此HTML中選擇下一個「選擇」(下拉列表)?
<tr>
<td><select id = "delAppSelectApp" name="delAppSelectApp"><option value="--Select--"> --Select--</option></select></td>
<td><select id = "delAppSelectAppVers" name="delAppSelectAppVers"><option value="--Select--">--Select--</option></select></td>
<td><input type="submit" name="submitDelAppVers" id="submitDelAppVers" value="Delete Application Version" /></td>
</tr>
我的腳本是:
$(document).ready(function(){
$("#delAppSelectApp").change(function(){
alert($(this).nextAll("select").attr("id"));
});
});
我希望窗口提醒 「delAppSelectAppVers」,這是不會發生。我究竟做錯了什麼 ?我甚至嘗試過「兄弟姐妹」功能。