2
JavaScript code:
The .value property applies to form elements (inputs), not divs. The simplest way to get the contents of your div element is with .innerHTML:
.value
.innerHTML
document.getElementById('hour').innerHTML;