|
Yes, it's possible, but is there a reason for the hidden field? Can't you just have the checkbox be like:
<input type="checkbox" name="22301" value="3855">
Also, technically, you can't have 2 objects with the same name (zip_id[]) and I don't think that the brackets [] are valid name characters as they are used to represent an array in JS.
For the script, just have when a check box is clicked, it clears zip code list, (to start from scratch) loops through all the checkboxes and if it's selected, it adds it to the box. I can help if you can explain how the hidden field works...
|