HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
This tutorial shows you how to create a simple drop-down box (Combobox), let it show picture items in the drop-down box. You can use the formatter function in the drop-down box (combobox) on to tell it how to format each entry.
<Input id = "cc" style = "width: 100px" url = "data / combobox_data.json" valueField = "id" textField = "text"> </ Input>
$ ( '# Cc'). Combobox ({ formatter: function (row) { var imageFile = 'images /' + row.icon; return '<img class = "item-img" src = "' + imageFile + '" /> <span class = "item-text">' + row.text + '</ span>'; } });