Adding / Removing Selected Checkbox and Radios to Array of Object
Can you please take a look at
This Demo and let me know how I can store the selected checkbox and it's associated data (radios)in array of objects like this:
- var yourSelection = {
- commedy: [
- {
- movieName: "",
- bestPart: "",
- overall: ""
- }
- ....
- {
- movieName: "",
- bestPart: "",
- overall: """
- }
-
- ],
-
- horros: [
- {
- movieName: "",
- bestPart: "",
- overall: ""
- },
- ....
- {
- movieName: "",
- bestPart: "",
- overall: "
- }
-
- ],
- actions: [
- {
- movieName: "",
- bestPart: "",
- overall: ""
- },
- ....
- {
- movieName: "",
- bestPart: "",
- overall: "
- }
-
- ]