# Checkbox onchange?

**URL:** https://forum.kirupa.com/t/checkbox-onchange/191893
**Category:** Uncategorized
**Created:** [June 23, 2006, 6:19pm UTC](https://forum.kirupa.com/t/checkbox-onchange/191893 "2006-06-23T18:19:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davez82](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@davez82](https://forum.kirupa.com/u/davez82)
#### Post date: [June 23, 2006, 6:19pm UTC](https://forum.kirupa.com/t/checkbox-onchange/191893/1 "2006-06-23T18:19:38Z")

</div>

trying to get a checkbox to change the value of a \<input\>

so lets say

\<input type=“checkbox” name=“change” value=“yes”\>

when checked , will onchange this input

\<input type=“hidden” name=“required” value=“companyname,realname”\>

i really havent gotten a grasp on how functions work or how they are coded but i really need major help with this one. Any help is appreciated
