JSFiddle - React, Tailwind, and code Playground
HTML
<div id="zero_form" style="display:none;">
<p>
<input id='box1_' type="text" style="width:125px" placeholder='Type'>
<br>
<select id='box2_' class="first_input" style="width: 200px;" placeholder="Choose a Value">
<option value="Choose a Value">Choose a Value</option>
<option>NEGATIVE</option>
<option>EQUIVOCAL</option>
<option>POSITIVE</option>
</select>
<input id='box3_' type="text" style='display:none;' placeholder='Score #1'>
<input id='box4_' type="text" style='display:none;' placeholder='Score #2'>
<input id='box5_' type="text" style='display:none;' placeholder='%'>
<input id='box6_' type="text" placeholder="Enter Comments" style="width:200px">
<input type="button" id="remove" class="removebutton" value="Delete">
<br>
</p>
</div>
<!-- end hidden clone div-->
<form>
<p>
<span id="add" class="addbutton">Add another row</span>
</p>
</form>
JavaScript
$(document).ready(function () {
// show hidden inputs on POSITIVE selection
$('input [type=select]').each(function(){
var sel = $(this).val();
if (sel == 'POSITIVE'){
$(this).parent().find('[type=text]').show();}
else {
$(this).parent().find('[type=text]').hide();}
});
// clone fields
var form_index = 0;
$("#add").click(function () {
form_index++;
$(this).parent().before($("#zero_form").clone().attr("id", "zero_form" + form_index));
$("#zero_form" + form_index).css("display", "inline");
$("#zero_form" + form_index + " :input").each(function () {
$(this).attr("id", $(this).attr("id") + form_index);
});
$("#remove"+form_index).click(function () {
$(this).closest("div").remove();
});
});
});