基于下拉选择的动态自动建议值的Jquery代码

时间:2018-01-04 12:41:21

标签: jquery

  

我有多个动态下拉列表及其相关的文本框。每当   任何动态下拉选项选项都会更改,其相关文本框会自动更改   建议值需要改变。

var source = [
{"idtype": "1", "idnumber": "In21","Company": "12345"},{"idtype": "2", "idnumber": "In24","Company": "12323"},
{"idtype": "3", "idnumber": "In22","Company": "12323"},{"idtype": "1", "idnumber": "In25","Company": "12323"},
{"idtype": "2", "idnumber": "In23","Company": "12367"},{"idtype": "3", "idnumber": "In26","Company": "12323"} ];

下拉值是源数据的idtype。文本框的自动建议值是相关的公司名称。

0 个答案:

没有答案