In my mvc application, I need a datetimepicker. I got the code for this from here .
So, first I refer to these js and css files.
<script src="~/Scripts/jquery-1.9.0.min.js"></script> <script src="~/Scripts/jquery-ui.min.js"></script> <script src="~/Scripts/jquery-ui-timepicker-addon.js"></script> <link href="~/Content/jquery-ui-timepicker-addon.css" rel="stylesheet" />
Then
<div> @Html.TextBox("fromdate", DateTime.Now.ToString("MM/dd/yyyy HH:mm"), new { @class = "from-date-picker", @readonly = "readonly" }) </div>
and in the script,
$('.from-date-picker').datetimepicker({ dateFormat: 'mm/dd/yy', timeFormat: 'hh:mm', timeInput: true, stepHour: 1, stepMinute: 5 });
So, I got a datetime collector like this.

But here, the time is selected using the slider. I am trying to do it as follows.

So I tried like this.
$('.from-date-picker').datetimepicker({ controlType: 'select', oneLine: true, timeFormat: 'hh:mm tt' });
But nevertheless, his approach is similar to the old style. That is, with a slider. How can I go to the second type?