PDA

View Full Version : Fill combo in html?



amegahed
22 Sep 2009, 10:18 AM
im trying to fill a combo [<select></select>] from ExtJS, this is my js code:


dsMapCities.load({params:{start: 0, limit: 250}});
var fieldCity = new Ext.form.ComboBox({
id : 'cmb-city',
triggerAction : 'all',
name : 'city',
mode : 'local',
store : dsMapCities,
hiddenName : 'cityid',
displayField : 'mapname',
valueField : 'cityid',
emptyText : 'Select a City ...',
width : 200
});



and this is my html code:


<td width="13%" align="left">
<select id="cmb-city"></select>
</td>