javascript - Generate JSON from Nested input checkbox values -
i getting nested input checkbox tags in divs shown in image
[problem] @ bottom of page, have submit button, when click on want form json of checked values parent nodes. if check key value, should parent keys along it. example: have selected servicename , officeid in transactiondetails, , array values in billdetails, should this
{ "fetchdetails": { "transactiondetails": { "servicename": "airtel mobile bill postpaid", "officeid": "209" }, "billdetails": [{ "lablename": "amount before due date", "lablevalue": "931.00" }, { "lablename": "due date", "lablevalue": "na" }, { "lablename": "account number", "lablevalue": "1116231291" }] } }
wiki
Comments
Post a Comment