I cant find the issue here also as I want to display text and other text if the check box is checked
<script>
function showconf() {
var checkbox = document.getElementById('check');
if (checkBox.checked == true){
document.getElementById('show').value = "test" ;
}
else {
document.getElementById('show').value = "hello" ;
}
}
</script>
<body>
<input type="checkbox" id="check" onclick="showconf()" >
<textarea id="show" name="message" rows="30" cols="100"></textarea>
</body>
thanks in advance