如果選項值和以前的比賽也將在下拉使用jQuery如何檢查下拉選項值與以前的值?
編輯
填充選擇框根據用戶的評論不會顯示
$.each(g_Vehicle, function (index) {
var iYear = g_Vehicle[index].Year;
sMake = g_Vehicle[index].Make;
selectYear = '<option value="' + iYear + '">' + iYear + '</option>'; selectMake = '<option value="' + sMake + '">' + sMake + '</option>';
$("#DropDown_Year").append(selectYear);
$("#DropDown_Make").append(selectMake);
});
任何一個可以幫我做這件事 – Anshu
什麼以前的手段? – coolguy
發佈您的代碼和html –