Like i sayed in the title, i need to build an array and change value in form input field's the code is:
<div class="row-dp">
<div class="cel-1">Obiectiv</div>
<div class="cel-2" id="obiectiv">macarale</div>
<div class="cel-3"> </div>
</div>
<div class="row-dp">
<div class="cel-1">Orasul selectat</div>
<div class="cel-2" id="orasulselectat">Bucuresti</div>
<div class="cel-3"> </div>
</div>
I need to take from " <div class="cel-2" " id to be a key and value to be value
an example
VAR['obiectiv'] = macarale;
VAR['orasulselectat'] = Bucuresti;
to transform from value in input field like
<input name="obiectiv" value="macarale" type="text" />
Thank you!
inputelements already exist or do they need to be created?