Javascript examples for DOM HTML Element:Input Week
Input Week disabled Property - Find out if a week field is disabled or not:
<!DOCTYPE html> <html> <body> <input type="week" id="myWeek" disabled> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {/* ww w .j a v a2s. c om*/ var x = document.getElementById("myWeek").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>