im still finding my way around with both jquery and JS. im using the plugin for date time picker here http://xdsoft.net/jqplugins/datetimepicker/ and i need to pass an array of allowed times in.
Basically the documentation states this
$('#datetimepicker5').datetimepicker({
datepicker:false,
allowTimes:[
'12:00', '13:00', '15:00',
'17:00', '17:05', '17:20', '19:00', '20:00'
]
});
What i was wondering was is there a way to pass in an array here? Ive tried creating a function and doing allowed:getArr() but it didnt work
function getArr() {
var allowTimes = [
'12:00', '12:30', '13:00', '13:30', '14:00',
'14:30', '15:00', '15:30', '19:00', '20:00'
];
return allowTimes;
}
is this how it should be done or is it a limitation of the plugin is what im trying to figure out?
datetimepickercode.