acceptmanager_province = new ext.form.combobox({ renderto :'province', store : storeprovince, //为用户名称填充数据 valuefield : 'value', displayfield : 'province', fieldlabel : accept_manager_province, typeahead : true, mode : 'local', forceselection : true, triggeraction : 'all', emptytext : accept_manager_province_emptytext, selectonfocus : true, width:100, [color=red]tpl: '<tpl for="."><div ext:qtip="{province}" class="x-combo-list-item">{province}</div></tpl>'[/color]
只需加标红的就可以到达选中每一项带提示功能。
值得注意的是标红的province必须得与displayfield的值相同
[img]http://www.iteye.com/images/smiles/icon_razz.gif[/img]
想要要提示功能,还得有个前提得在ext.onready(function()里的第一句话加上ext.quicktips.init();