# Checkbox-reset

**URL:** <https://forum.kirupa.com/t/checkbox-reset/236100>\
**Category:** Uncategorized\
**Created:** [August 17, 2007, 3:42am UTC](https://forum.kirupa.com/t/checkbox-reset/236100 "2007-08-17T03:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramize\_27](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@ramize\_27](https://forum.kirupa.com/u/ramize_27)\
**Post date:** [August 17, 2007, 3:42am UTC](https://forum.kirupa.com/t/checkbox-reset/236100/1 "2007-08-17T03:42:58Z")

</div>

Hi,

I managed to generate checkboxes using php. I’ve also added a little function that compares this table with another table and checks if a selection already exists in it. And if it does, the checkboxes are rendered as ‘CHECKED’ and the rest are not. So everything is working fine… BUT… when I click reset, the checkboxes that are pre-checked, do not get ‘reset’…  
is there a javascript function anyone can recommend for reset…i’d prefer to use some thing onclick (set all the checkboxes as ‘UNCHECKED’)
