你构建的时候加上一个onSelect事件API里面有详细解释,选择时触发这个事件让input禁止编辑 $('#a').combobox({ url:'123.action', valueField:'id', textField:'text', onSelect:function(record){ var value = record.id; var text = record.text;
For i As Integer = 0 To Me.ComboBox1.Items.Count - 1 If CType(Me.ComboBox1.DataSource, DataTable).Rows(i).Item(0) = textbox1.text Then MsgBox("has") End If Next