Javascript examples for DOM HTML Element:Input Color
Input Color disabled Property - Find out if a color picker is disabled or not:
<!DOCTYPE html> <html> <body> <input type="color" id="myColor" disabled> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {//from ww w .ja v a 2 s . co m var x = document.getElementById("myColor").disabled; document.getElementById("demo").innerHTML = x; } </script> </body> </html>