Javascript examples for DOM HTML Element:Input Week
Input Week readOnly Property - Find out if a week field is read-only or not:
<!DOCTYPE html> <html> <body> <input type="week" id="myWeek" readonly> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {/*from w w w . ja v a2 s .c o m*/ var x = document.getElementById("myWeek").readOnly; document.getElementById("demo").innerHTML = x; } </script> </body> </html>