JavaScript ListBox

Set the autoHeight 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='listTimes'></div>

JavaScript

var source = [
        { html: '<div id="time1"></div>', value:100 },
        { html: '<div id="time2"></div>', value:101 },
        { html: '<div id="time3"></div>', value:102 },
        { html: '<div id="time4"></div>', value:103 },
        { html: '<div id="time5"></div>', value:104 }
       ];
       
       
$("#listTimes").jqxListBox({ itemHeight: 50, allowDrop: true, allowDrag: true, source: source, width: 288, height: 300});
for(var i=1;i<=5;i++){
 $('#time'+i).jqxDateTimeInput({formatString: "T", showTimeButton: true, showCalendarButton: false, width: 100, height: '25px' }); 
}


$('#listTimes').on('change', function (event) {
    for(var i=1;i<=5;i++){
     $('#time'+i).jqxDateTimeInput({formatString: "T", showTimeButton: true, showCalendarButton: false, width: 100, height: '25px' }); 
    }
});