JQM Datebox remove Hours and Seconds from durationbox

1.2k Views Asked by At

I've had a good look through their docs, but does anyone know if it is possible to remove the 'days' and 'seconds' options from the popup for the durationbox?

Here is what I have:

<label for="time">Duration (mins)</label>
<input name="duration" id="duration" type="date" data-role="datebox" data-options='{"mode": "durationbox", "overrideDurationFormat": "%DM"}'>
2

There are 2 best solutions below

1
On BEST ANSWER

yeah, something like:

"overrideDurationOrder":["h","i"] 

I believe

0
On

You can try this:

<input name="mydate" id="mydate" type="date" data-role="datebox" data-options='{"mode": "durationbox", "durationOrder": ["d", "h"]}'>