Skip to content

Instantly share code, notes, and snippets.

@allmarkedup
Created July 21, 2012 14:35
Show Gist options
  • Save allmarkedup/3155969 to your computer and use it in GitHub Desktop.
Save allmarkedup/3155969 to your computer and use it in GitHub Desktop.
default values for html checkboxes
<input type="text" name="my_input_name[0]" value="item_value" />
<input type="hidden" name="my_input_name[1]" value="unchecked_value" />
<input type="checkbox" name="my_input_name[1]" value="checked_value" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment