How to change div border-color by input value?
My Code
function myFunction() {
var color = document.getElemntByID("inpx").value; document.getElementById("divx").style.borderColor = color;
}
<!DOCTYPE html>
<html>
<head> </head>
<body>
<div id=divx"> </div>
<button onClick=""> </button>
<script>
</script>
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire