JSFiddle - React, Tailwind, and code Playground

HTML

<input type='text' id='1' />
<a href='#'>blah</a>
<input type='text' id='2' />

CSS

a {
    position: relative;
    top: -20px;
    left: 125px;
}
input {
    display: block;
}

JavaScript

$(function() {
    /* Set a negative margin-top for the bottom input 
    equivalent to the outerHeight of the a, causing it
    to move up as if the a wasn't there */
    $('#2').css('margin-top',($('a').outerHeight())*-1);
});