# Need Help with a javascript snippet

**URL:** <https://forum.kirupa.com/t/need-help-with-a-javascript-snippet/253317>\
**Category:** web dev\
**Created:** [February 29, 2008, 1:43am UTC](https://forum.kirupa.com/t/need-help-with-a-javascript-snippet/253317 "2008-02-29T01:43:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDD](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@DDD](https://forum.kirupa.com/u/DDD)\
**Post date:** [February 29, 2008, 1:43am UTC](https://forum.kirupa.com/t/need-help-with-a-javascript-snippet/253317/1 "2008-02-29T01:43:13Z")

</div>

Basically I need a check box to be checked if there is a value in a text field and unchecked if not. And the check box is readonly. Any ideas, searched around but couldnt find a lil snippet.

:cheers:
