Ext comobox
var result;
Ext.onReady(function(){
comboFunction = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
transform:'cbFunction',
width:150,
maxHeight:70,
forceSelection:true,
emptyText:' '
});
var allData = comboFunction.store.data;
result = new Array();
for (var i = 0; i < allData.length; i++)
{
var item = allData.get(i).data;
result.push([item["value"], item["text"]]);
}
});
function clearInput()
{
document.getElementById('tbDev').value = "";
comboFunction.clearValue();
comboFunction.store.loadData(result);
//document.getElementById('cbFunction').selectedIndex = 0;
comboFunction.setValue(document.getElementById('hidCBFunctionFirst').value);
}