JSFiddle - React, Tailwind, and code Playground
by lshettyl
HTML
<div id="Formular">
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
</div>
<div id="FormularJS">
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
<input type="text" />
</div>
JavaScript
//jQuery
var Inputs = $('#Formular :input');
Inputs.each(function(i){
$(this).val("someval-" + i);
//$(this).val(Daten[x-1][i]);
});
//Javascript (+ a bit of jQuery, they way you did)
var InputJS = $('#FormularJS :input');
for(i =0; i<InputJS.length; i++){
InputJS[i].value = "some--val-" + i;
}