<p id="text" style="display:none">Checkbox is CHECKED!</p>
Javascripti kısmı için ise
undefined
function myFunction() {
// Get the checkbox
var checkBox = document.getElementById("myCheck");
// Get the output text
var text = document.getElementById("text");
// If the checkbox is checked, display the output text
if (checkBox.checked == true){
text.style.display = "block";
} else {
text.style.display = "none";
}
}
Yorumlar
Henüz Kimse Yorum Yazmamış