Input Color disabled Property - Find out if a color picker is disabled or not: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Input Color

Description

Input Color disabled Property - Find out if a color picker is disabled or not:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials