jEasy ComboBox Demo

Show's result of setting non-valid ID, and validation of that value.

HTML

<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<div>
<label >Phone:</label>
<input class="easyui-combobox" id="Phone" name="Phone" />
</div>

JavaScript

$(function () {
    $('#Phone').combobox({
        panelHeight: 'auto',
        selectOnNavigation: false,
        valueField: 'id',
        textField: 'text',
        editable: true,
        data: [{"id":"0","text":"Motorola","selected":"true"},{"id":"1","text":"Nokia"},{"id":"2","text":"Xiaomi"},{"id":"3","text":"LG"},{"id":"4","text":"HTC"},{"id":"6","text":"Samsung"}]
    });

});