JSFiddle - React, Tailwind, and code Playground
by Gereltod Gotsbayar
HTML
<div class="">
<input type="text" value="input 1" />
<input type="text" value="input 2" />
<input type="text" value="input 3" />
<input type="text" value="input 4" />
<input type="text" value="input 5" />
<input type="text" value="input 6" />
<input type="text" value="input 7" />
<a href="#">delete from last</a>
</div>
CSS
:root {display: block }
input {display: block }
JavaScript
$("a").click(function(){
$("input:last").remove();
});