I removed my other post, because it was too long…and have revised my question, to simplify things.
Situation: I have a series of checkboxes on a page, and each time a box is clicked, the value gets amended an array, then take the content of that array and build a url which should be loaded using .load. If the box is unchecked, I would like that value removed from the array and url rebuild and new page loaded.
Question 1: Once a box is clicked how can I store that value to an array?
Question 2: How do I build the .load url with an array?
Here is the code I have so far…which works (kinda)
This only works for one checkbox at a time…as there is currently no array. Can someone explain how I can store a clicked value?
I kinda think I need to do something more like…
If a box is checked, see what other boxes are checked and then send the values of all the boxes that are checked.
Then, when a box is unchecked, check what boxes are checked and then resend the values in a url. Thoughts?