# JavaScript Checkbox Problem

**URL:** <https://forum.kirupa.com/t/javascript-checkbox-problem/306410>\
**Category:** web dev\
**Created:** [March 15, 2010, 12:53am UTC](https://forum.kirupa.com/t/javascript-checkbox-problem/306410 "2010-03-15T00:53:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goalieguy6](https://avatars.discourse-cdn.com/v4/letter/g/9f8e36/32.png) [@goalieguy6](https://forum.kirupa.com/u/goalieguy6)\
**Post date:** [March 15, 2010, 12:53am UTC](https://forum.kirupa.com/t/javascript-checkbox-problem/306410/1 "2010-03-15T00:53:47Z")

</div>

I’ve been having some problems getting the value from a checkbox using JavaScript, and I can’t get anywhere. For some reason it just doesn’t want to get the checkbox value. I’d really appreciate it if anyone can help with this problem.

```auto
   	release = document.getElementById('release0');
    	if (release == undefined) {
    		alert('Not Found');
    	} else {
    		alert(release.checked); // Returns true
    	}

        // Conditional Statement - No alert boxes show up
	if (release.checked == true) {
		alert('Release');
	}
	else {
		alert('Do not release');
	}
        alert('Done'); // Never shows up

```
