JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<input class="an-input" type="text"></input>
<button class="ui-state-default inputButton an-button">GO</button>
</div>
JavaScript
$('.an-button').click(function() {
var inputValue = $('.an-button').closest('div').find('input').val();
alert(inputValue)
window.open('http://a810-bisweb.nyc.gov/bisweb/JobsQueryByNumberServlet?passjobnumber='+inputValue+'&passdocnumber=&go10=+GO+&requestid=0');
});