Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Form - Formatting the ComboBox

jQuery EasyUI Form - Formatting the ComboBox

This tutorial shows you how to create a simple combobox that displays image items in the drop-down list. You can use the formatter function on the combobox to tell it how to format each entry.

Creating an Image Combobox



    

    



    $('#cc').combobox({

        formatter:function(row){

            var imageFile = 'images/' + row.icon;

            return ''+row.text+'';

        }

    });

Download the jQuery EasyUI example

jeasyui-form-form4.zip