So i have this page where people will be able to dynamically created inputs and select fields, and since i don't know how many of inputs and select fields will they create im kinda out of ideas on how would i get the values of every single one of them so i can send them to my php page via ajax.
I thought maybe a good idea would be to try to loop through every div and take values of select and input field, but i don't know how to do that. This is how html looks after user has created couple of inputs and seleect fields:
<div id="izmena_arhitekte">
<div class="headlinea">Arhitekte</div>
<div class="form-group">
<input type="text" class="form-control upis-style" placeholder="Ime i prezime" value="Zeljko Bogicevic" id="arh_ime1"> <i title="Obrisi Arhitektu" class="fa fa-times fa-2x deleteArh"></i>
<select style="margin-top:-18px;" id="tip1" class="form-control upis-style">
<option selected="" value="Projektant">Projektant</option>
<option value="Pomocni">Pomocni</option>
<option value="Nadzor">Nadzor</option>
</select>
</div><div class="form-group">
<input type="text" class="form-control upis-style" placeholder="Ime i prezime" value="Nikola Kojic" id="arh_ime2"> <i title="Obrisi Arhitektu" class="fa fa-times fa-2x deleteArh"></i>
<select style="margin-top:-18px;" id="tip2" class="form-control upis-style">
<option value="Projektant">Projektant</option>
<option selected="" value="Pomocni">Pomocni</option>
<option value="Nadzor">Nadzor</option>
</select>
</div>
<div class="form-group">
<input type="text" class="form-control upis-style" placeholder="Ime i prezime" value="" id="arh_ime3"> <i title="Obrisi Arhitektu" class="fa fa-times fa-2x deleteArh"></i>
<select style="margin-top:-18px;" id="tip3" class="form-control upis-style">
<option value="Projektant">Projektant</option>
<option value="Pomocni">Pomocni</option>
<option value="Nadzor">Nadzor</option>
</select>
</div>
</div>