我有这种形式,根据选择的第一个下拉值,在第二个下拉列表中更改值。它按设计工作,但仅限于第一个选择的选项。如果我在下拉列表中重新选择一个不同的值(第二次),它不会在下拉列表中更改值(它只会根据第一个选项更改它)。在这种情况下,如果用户输入了错误的值,则第一次无法更改它,除非重新加载页面。这是一个小提琴http://jsfiddle.net/k4hYE/53/
var objArray = {"On-Call Service": "Per Pickup"};
var objArray = {"Every Six Months (2 Stops Annually)": "Per Pickup"};
var objArray = {"Every Three Months (4 Stops Annually)": "Every Three Months"};
var objArray = {"Every Other Month (6 Stops Annually)": "Every Other Month"};
var objArray = {"Monthly (12-13 Stops Annually)": "Per Month"};
var objArray = {"Every Other Week (26 Stops Annually)": "Per Month"};
var objArray = {"Every Week (52 Stops Annually)": "Per Month"};
$("#00NA00000047Jk8").change(function()
{
var ddText = $(this).val();
$.each(objArray,function(key,value)
{
if(ddText == key)
$("#00NA0000005wIiU").val(value);
});
});