JSFiddle - React, Tailwind, and code Playground
by Chethan Srinivas
HTML
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id='jqxDropDownList'></div>
<div>
<input style="margin-top: 20px;" type="button" id='jqxButton' value="Set the content" />
</div>
JavaScript
var source = [
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Café Bombón",
"Café au lait",
"Caffé Corretto",
"Café Crema",
"Caffé Latte"];
// Create a jqxDropDownList
$("#jqxDropDownList").jqxDropDownList({
source: source,
theme: 'energyblue',
width: '200px',
height: '25px',
checkboxes: true
});
$("#jqxButton").jqxButton({
theme: 'energyblue'
});
$('#jqxDropDownList').on('checkChange', function () {
alert('');
$("#jqxDropDownList").jqxDropDownList('setContent', 'My Content');
});
$('#jqxButton').on('click', function () {
$("#jqxDropDownList").jqxDropDownList('setContent', 'My Content');
});