Javascript examples for DOM HTML Element:Input Time
Input Time readOnly Property - Find out if a time field is read-only
<!DOCTYPE html> <html> <body> Time: <input type="time" id="myTime" readonly> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//from w ww . ja v a 2s.c om var x = document.getElementById("myTime").readOnly; document.getElementById("demo").innerHTML = x; } </script> </body> </html>