JavaScript dropdown with Images

Adding images to the JavaScript dropdown



<html>
<script src="https://bossanova.uk/jsuites/v3/jsuites.js"></script>
<link rel="stylesheet" href="https://bossanova.uk/jsuites/v3/jsuites.css" type="text/css" />

<div id="dropdown"></div>

<script>
jSuites.dropdown(document.getElementById('dropdown'), {
    data:[
        {
            value: '1',
            text: 'Paul Hodel',
            image: '/templates/default/img/1.jpg',
            title:'Admin'
        },
        {
            value: '2',
            text:'Cosme Sergio',
            image: '/templates/default/img/2.jpg',
            title: 'Teacher'
        }
    ],
    width:'280px',
    autocomplete: true,
});
</script>
</html>