用jquery更改下拉列表的选定值。
ddl = document.getElementById("ID of element goes here");ddl.value = 2; // 2 being the value I want to set it too.
$("._statusDDL").val(2); // Doesn't find 2 as a value.$("._statusDDL").children("option").val(2) // Also failed.
更新
$("._statusDDL").val(2);
无法设置选定的属性。无效索引
拉丁的传说
MYYA