我有Zend自动填充字段,在那里我可以添加城市名称,我的问题是如何从2个字段,1个值和2个(隐藏)id中的列表中填充数据;
$this->view->autocompleteElement = new ZendX_JQuery_Form_Element_AutoComplete('cmp_name');
$this->view->autocompleteElement->setJQueryParam('source','/client/search');
我认为这是可能的,因为我传递数组
[{"id":"2","value":"2","label":"Vardenisas!!!!!"},{"id":"23","value":"23","label":"Vardas"},{"id":"32","value":"32","label":"aaaaaaa"}]
如果有人知道如何通过一次点击传递1个归档label
和2个(隐藏)id
?