Html5 ListBox
Set the dragStart property of the jqxListBox. Author: http://jqwidgets.com
by mark edwards
HTML
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div style="float: left;" id="listbox"></div>
JavaScript
$(document).ready(function () {
var source = [
"Affogato",
"Americano",
"Bicerin",
"Breve",
"Café Bombón",
"Café au lait",
"Caffé Corretto",
"Café Crema",
"Caffé Latte",
"Caffé macchiato",
"Café mélange",
"Coffee milk",
"Cafe mocha",
"Cappuccino",
"Carajillo",
"Cortado",
"Cuban espresso",
"Espresso",
"Eiskaffee",
"The Flat White",
"Frappuccino",
"Galao",
"Greek frappé coffee",
"Iced Coffee?",
"Indian filter coffee",
"Instant coffee",
"Irish coffee",
"Liqueur coffee"
];
// Create a jqxListBox
$("#listbox").jqxListBox({width: 200, source: source, checkboxes: true, height: 250});
// Check several items.
$("#listbox").jqxListBox('checkIndex', 0);
$("#listbox").jqxListBox('checkIndex', 1);
$("#listbox").jqxListBox('checkIndex', 2);
$("#listbox").jqxListBox('checkIndex', 5);
$("#listbox").on('checkChange', function (event) {
if ( tmpDisable ) {
tmpDisable = false;
// skip because code just tripped this event.
} else {
if ( savedInnerText === '' ) {
return false; // user just clicked the checkbox
} else {
var args = event.args;
...