JSFiddle - React, Tailwind, and code Playground
HTML
<div class="creatives">
<div class="container">
<input class="activeInput" type="text" name="url" value="123">
<input class="activeInput" type="text" name="title" value="312">
</div>
<div class="container">
<input class="activeInput" type="text" name="url" value="asd">
<input class="activeInput" type="text" name="title" value="das">
</div>
</div>
JavaScript
$(function() {
var map = {};
var array = {};
$(".container").find("input[type='text']").each(function() {
map[$(this).attr("name")] = $(this).val();
});
console.log(map);
});