Hi,
I guess I am doing something wrong but I don't see what. Can someone help me please?
I have a very simple combobox, which I feed with a 2-dimensional array of value text. When I press submit the text is sent and not the value. In the combobox choices I see the texts.
Code:
<html>
<head>
<script type="text/javascript" src="../extjs/adapter/ext/ext-base.js?v=3331"></script>
<script type="text/javascript" src="../extjs/ext-all-debug.js?v=3331"></script>
</head>
<body>
<form>
<input id="combo" name="combo" type="text" />
<input type="submit" name="send" />
</form>
<script type="text/javascript">
//<![CDATA[
Ext.onReady(function(){
var arrayCombo = [["a", "apple"], ["b", "banana"]];
var combo = new Ext.form.ComboBox({
typeAhead: true,
store: arrayCombo,
triggerAction: 'all',
applyTo:'combo',
width:200,
editable:false,
selectOnFocus:true,
value: "b",
mode: 'local',
forceSelection:true
});
});
//]]>
</script>
</body>
</html>
The combobox shows normally with all the fruit texts, but when I submit, the text is sent and not the value!!!