Javascript examples for DOM HTML Element:Input Date
Input Date disabled Property - Disable and enable a date field:
<!DOCTYPE html> <html> <body> <input type="date" id="myDate"><br><br> <button onclick="disableBtn()">Disable Date Field</button> <button onclick="undisableBtn()">Enable Date Field</button> <script> function disableBtn() {//from www. jav a 2s . co m document.getElementById("myDate").disabled = true; } function undisableBtn() { document.getElementById("myDate").disabled = false; } </script> </body> </html>