I have reminders in the system, the client himself sets the date and time of the reminder, the time step in the selection field is 15 minutes. I use the calendar plugin, but users can enter 16:01 or 15:03, but it is necessary that I could enter the time in increments of 15 minutes, no more, no less.
Form field
<input name="end_time" id="end_time" type="text" /> js
jQuery(function(){ jQuery('#end_time').datetimepicker({ lang:'ru', datepicker:false, format:'H:i', value:'<?=date('H'); ?>:00', step:15 }); }); How to do this?
16:01 или 15:03? - Telioninputediting, make a separate button that will change its value via js. - LEQADA