Javascript examples for DOM HTML Element:Input Time
Input Time disabled Property - Find out if a time field is disabled:
<!DOCTYPE html> <html> <body> <input type="time" id="myTime" disabled> <p>Click the button to find out if the time field is disabled.</p> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//from w w w .j a v a2s.c o m var x = document.getElementById("myTime").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>