From last 5 hours i am trying to solve out one single thing and think almost made it but stuck somewhere due to which not getting the result i want. I think here i need a bit expert level help to rectify where i am doing wrong.
var eduarray = [];
$('.education-groupbox').each(function(index, el) {
eduarray[index] = [];
var s = $(this).attr('id');
//console.log();
$('#'+s+' .inputs').each(function(key, value) {
//eduarray['index'].push("rohit");
});
});
What i am trying to get is the result in format of object with multiple array from the each each loop so that i can send the data through formdata and process the php form.
<div id="education-groupboxwrapper">
<div id="education-groupbox" class="education-groupbox">
<div class="inputs col-3">
<label for="email">Bölüm</label>
<input type="text" name="email" />
</div>
<div class="inputs col-3">
<label for="email">Okul Adı</label>
<input type="text" name="email" />
</div>
<div class="inputs col-3">
<label for="email">Bölüm</label>
<input type="text" name="email" />
</div>
<div class="inputs col-3">
<label for="email">Bölüm</label>
<input type="text" name="email" />
</div>
</div>
</div>
inputswiths, in$('#'+s+' inputs')? also please consider posting a Minimal, Complete, and Verifiable example with minimum required code within the question, i.e your HTML structure