Products

A new version of the jSuites JavaScript Dropdown plugin is available here.

JavaScript Dropdown

JavaScript dropdown with color indication

The example below shows how to include a color indication in the items.

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

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

<script>
jSuites.dropdown(document.getElementById('dropdown'), {
    data:[
        { color:'blue', value:'1', text:'Not started' },
        { color:'green', value:'2', text:'On development' },
        { color:'orange', value:'3', text:'Concluded' },
        { color:'red', value:'4', text:'Archived' },
    ],
    width:'280px',
});
</script>
</html>