$timetable = array();
for($i = 0; $i <= 23; $i++) {
$timetable[$i.':00'] = $i.':00';
$timetable[$i.':15'] = $i.':15';
$timetable[$i.':30'] = $i.':30';
$timetable[$i.':45'] = $i.':45';
}
$fields["ready"] = array("label" => "Opbouwklaar", "type" => "select", "options" => $timetable);
How can you set a default value to the following array? I have already tried set a "blank" or "default" in the array but this didn't work unfortunately.
Now the default value is standard 0:00, this is because that is the first option in the for statement.
$timetableloop and include it in$fields['ready']$fields["ready"]array another index called "selected" and value to check and mark as selected ??