I know the library does not do something extravagant and has been done before by others as well but it is something that I was and am excited to share with the community to make me better in js.
26 karma · joined July 7, 2014
I know the library does not do something extravagant and has been done before by others as well but it is something that I was and am excited to share with the community to make me better in js.
Here is a list of even more sophisticated libraries that might help you as well
https://www.npmjs.com/search?q=form+serialize
Someone already posted this link earlier here.
1. I cannot put the values of one object inside the other unless they come under the same parent.
2. Arrays in my case can be created in one go and you need not specify the array indexes hard coded in the html itself.
3. In my case some inputs were not inside any forms. This library mandates that it should be so it did not work for me.
I understand my code will be far less sophisticated but I made it to solve a problem and learn javascript as well. I did and wanted to see how many others face the same problem and can use it.