Html5 ListBox

Set the dragStart property of the jqxListBox. Author: http://jqwidgets.com

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 id='jqxListBox_1'></div>
<div id="log_1"></div>
<p>
Please try dragging one from above to one from below, then try clicking a checkbox.
</p>
<p/>
<div id='jqxListBox_2'></div>
<div id="log_2"></div>

JavaScript

var source_1 = [
  "Affogato_1",
  "Americano_1",
  "Bicerin_1",
  "Breve_1",
  "Café Bombón_1",
  "Café au lait_1",
  "Caffé Corretto_1",
  "Café Crema_1",
  "Caffé Latte_1"];

// Create a jqxListBox
$("#jqxListBox_1").jqxListBox({
  allowDrop: true,
  allowDrag: true,
  checkboxes: true, 
  dropAction: 'copy',
  source: source_1,
  width: 200,
  height: 220,
  theme: 'energyblue',
  dragStart: function (item) {
    $("#log_1").text("Dragging: " + item.label);
  }
});
var source_2 = [
  "Affogato_2",
  "Americano_2",
  "Bicerin_2",
  "Breve_2",
  "Café Bombón_2",
  "Café au lait_2",
  "Caffé Corretto_2",
  "Café Crema_2",
  "Caffé Latte_2"];

// Create a jqxListBox
$("#jqxListBox_2").jqxListBox({
  allowDrop: true,
  allowDrag: true,
  dropAction: 'copy',
  source: source_2,
  width: 200,
  height: 220,
  theme: 'metro',
  dragStart: function (item) {
    $("#log_2").text("Dragging: " + item.label);
  }
});

$("#jqxListBox_1").on('dragEnd', function (event) {
  $("#jqxListBox_1").jqxListBox('refresh');
});