JSFiddle - React, Tailwind, and code Playground
HTML
<div id="last-row">
<input name="multifield" placeholder="Value">
</div>
CSS
a, a:hover {
cursor: pointer;
}
JavaScript
var lastRow = $('#last-row');
var lastInput = $(lastRow.selector + ' input');
function addRow() {
var newInput = $('<input name="multifield" placeholder="Value"></input>');
var newRow = $('<div></div>');
newRow.append(newInput);
var newDelete = $('<a class="row-delete"><img src="http://i.imgur.com/ZSoHl.png" /></a>');
newRow.append(newDelete);
lastInput.before(newRow);
newInput.focus();
newDelete.click(function() {
newRow.remove();
});
}