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