Hola
alfil123
Prueba este ejemplo:
Código PHP:
<html>
<head>
<script type="text/javascript">
function ini() {
obj = document.forms[0].sel;
for (i=0; i<24; i++) {
h = (i<10) ? '0'+i : i;
opt = document.createElement('option');
opt.innerHTML = h + ':00';
obj.appendChild(opt)
opt = document.createElement('option');
opt.innerHTML = h + ':30';
obj.appendChild(opt)
}
}
</script>
</head>
<body onload="ini()">
<form>
<select name="sel">
</select>
</form>
</body>
</html>
Saludos,