Skip to content
Advertisement

Merge multiple serializeobject to one?

is it possible to merge multiple serializeobject to one serializeobject? I will be using it in a post. The serializeobjects are created via for loop.

JavaScript

And here is an example of how the <form> element could look:

JavaScript

Depending on the data I get from the database there can be up to 10 (or even more) checkboxes.

Advertisement

Answer

I still have no idea what your HTML might look like and what optimizations we could still carry out. But the following collects the input fields of those elements following a “checked” checkbox. Maybe it is of some help to you?

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement